+1-888-365-2779
Try Now
More in this section

Frame

9 posts, 0 answered
  1. Asit
    Asit avatar
    87 posts
    Registered:
    07 Nov 2009
    12 Nov 2009
    Link to this post
    hi
    I need to open a page in the right panel, when clicking a sub menu under main menu in admin page.
    How can i do this.
    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Nov 2009
    Link to this post
    Hi asit pani,

    Could you elaborate a bit more and send us or a wireframe of what you want to achieve?

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Asit
    Asit avatar
    87 posts
    Registered:
    07 Nov 2009
    12 Nov 2009
    Link to this post
    hi

    i m sending u a screen shot.plz check this.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Nov 2009
    Link to this post
    Hello asit pani,

    1. Create a page with the following sample content

    <%@ Page Language="C#"  MasterPageFile="~/Sitefinity/Admin/Admin.master" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Sitefinity_Admin_CmsAdmin_Test" Title="Untitled Page"  %>
     
     
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <div id="main">
            <div class="in">
            <div class="ContorlPanelTitle"><h1>TEST</h1></div>
                  <asp:TextBox  runat="server" ID="tb1" />
            </div>
        </div>
        <div id="subnav">
            <div class="in">
                 
                <h3> LEFT SIDE</h3>
            </div>
        </div>
        <div class="clear width"><!-- --></div>
    </asp:Content>

    public partial class Sitefinity_Admin_CmsAdmin_Test : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
     
        }
        public override string MenuItemName
        {
            get { return "admin_test"; }
        }
     
    }

    since you are modifying the main menu alter DataBound event of the main TabStrip control

    Sitefinity/Admin.master.cs

    protected void MainMenu_DataBound(object sender, EventArgs e)
      {
          System.Collections.Generic.IList<Telerik.Web.UI.RadTab> tabList = MainMenu.GetAllTabs();
          bool pass = false;
          foreach (RadTab tb in tabList)
          {
              
              if (!pass && tb.Text == "MyCustomTab")
              {
                  RadTab tab = new RadTab();
                  tab.NavigateUrl = "~/Sitefinity/Admin/CmsAdmin/Test.aspx";
                  tab.Text = "TEST";
                  tb.Tabs.Add(tab);
                  pass = true;
              }
          }
     
                 .... 
                    ...


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Asit
    Asit avatar
    87 posts
    Registered:
    07 Nov 2009
    13 Nov 2009
    Link to this post
    hi
    thanks for ur reply.
    I m sending another attachment.plz check this.
    actually the page does not have admin.master as master page.
    The menu control is in admin.master page and the page should open in the test.aspx page's right panel within any frame/container. how to do this please help me.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Nov 2009
    Link to this post
    Hello asit pani,

    You can ad iframe with scr attribute. The code I sent you does exactly what you want to achieve. Have you tried it?I am not using the Admin.master from App_Master folder, I am using the masterpage for the backend.

    1. Crate the page under Sitefinity/Admin/CmsAdmin folder
    2. Add the code I sent you.
    3. Modify Sitefinity/Admin.master.cs as suggested.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Asit
    Asit avatar
    87 posts
    Registered:
    07 Nov 2009
    13 Nov 2009
    Link to this post
    hi
     this is fine, but i don't need any master page and the the  page will open within that frame.
     in the main tab i created one custom tab and in that custom tab i created 3 child tabs. when clicking the custom tab test.aspx (which has admin.master) page comes.but when clicking the child tab another .aspx page should open in the frame inside the test.aspx page.

    thanks
  8. Nabanita
    Nabanita avatar
    22 posts
    Registered:
    18 Oct 2010
    15 Dec 2010
    Link to this post
    Hello,

    I have followed the steps mention here, but my page is not getting any Css styles.
    I am attaching the page.

    I have added this code in that page:

    <%@ Page Language="C#" MasterPageFile="~/Sitefinity/Admin/Admin.master" AutoEventWireup="true" CodeFile="Payment.aspx.cs" Inherits="Sitefinity_Admin_Payment" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="cc1" %>
    <%@ Register Assembly="Telerik.Cms" Namespace="Telerik.Cms.Web.UI" TagPrefix="cc2" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="main">
            <div class="in">
            <div class="ContorlPanelTitle"><h1>TEST</h1></div>
                  <asp:TextBox  runat="server" ID="tb1" />
            </div>
        </div>
        <div id="subnav">
            <div class="in">
                 
                <h3> LEFT SIDE</h3>
            </div>
        </div>
        <div class="clear width"><!-- --></div>
    </asp:Content>


    Please tell me what can be the problem?

    Looking for your feedback.

    Thank you.

  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hello Nabanita,

    You are not loading some css files. Please use FireBug or IE dev tools to see whether you are missing some css files.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
9 posts, 0 answered