Try Now
More in this section

Forums / Developing with Sitefinity / Adding sections to Administration

Adding sections to Administration

2 posts, 0 answered
  1. LouiseBA
    LouiseBA avatar
    61 posts
    23 Mar 2010
    25 May 2010
    Link to this post
    Hi there,

    I want to add a new item to the menu in Administration. So after 'Tools' in the panel. How do I create an item here and have it point to a page showing a simple data grid. (our application contains the concept of 'members' aswell as 'users'. Members are the public signed in users of our website. We want to maintain them here.)

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    25 May 2010
    Link to this post
    Hello LouiseBA,

    To add a new tab to the MainMenu RadTab Strip you should Sitefinity\Admin\Admin.master.cs change the logic in the MainMenu_DataBound. You should access the MainMenu RadTabStrip control, find one of the root level tabs and create a child. Sample code has been provided below.

    protected void MainMenu_DataBound(object sender, EventArgs e)
        IList<RadTab> tabsCollection = MainMenu.GetAllTabs();
        foreach (RadTab t in tabsCollection)
            RadTab parent = MainMenu.Tabs.FindTabByText("Administration");
            if (t.Text == "Tools" && t.Level == 1)
                RadTab customTab = new RadTab("grid", "grid");
                customTab.NavigateUrl = "path to your page with rad grid control";
        if (!String.IsNullOrEmpty(this.currentTab))
            SetCurrentTab(this.MainMenu.Tabs, this.currentTab);

    Then you need to create a page that inherits from AdminPage and uses MasterPageFile="~/Sitefinity/Admin/Admin.master" as a master page file. Inside this page you could add your RadGrid and implement the logic you want.

    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.
2 posts, 0 answered