Replacing a SharePoint master page's default Quick Launch menu with RadPanelbar

This topic explains how to switch the SharePoint's Quick Launch menu in SharePoint site's default.master page with RadPanelbar. The control exposes advanced client and server-side capabilities from which your SharePoint site can benefit (without any extra coding).

In order to substitute the Quick launch UI of the SharePoint master page, follow the steps specified below (note that RadPanelBar will wrapped in the same navigation block and will be bound to the same data source as the standard menu for navigation):

  1. Following the directions from this topic to add the necessary SafeControl and http handler/module definitions in the web.config of the SharePoint site. Note that this step can be skipped in case you used the automatic SharePoint 2010 installer of Telerik® UI for ASP.NET AJAX because the installer will perform these actions instead of you.

  2. Launch Office SharePoint designer and open the desired SharePoint site

  3. Within the Folder List tool window expand the tree until the master pages folder is visible. A typical location is http://server_name/_catalogs/masterpage

  4. Open the master page currently used by your site (e.g. default.master). If prompted to check out the file select “Yes”.

  5. Insert the following @Register directive in the default.master page:


    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=x.x.x.x, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
  6. In the default.master page, locate the ContentPlaceHolder control with id PlaceHolderLeftNavBar.

  7. Inside the ContentPlaceHolder specified in the previous point, designate the menu control with id QuickLaunchMenu.

  8. Delete or comment the markup of the default menu control and insert the RadPanelbar definition as specified below:


           <asp:MenuItemStyle CssClass="ms-navheader"/>
           <asp:MenuItemStyle CssClass="ms-navitem"/>
           <asp:SubMenuStyle CssClass="ms-navSubMenu1"/>
           <asp:SubMenuStyle CssClass="ms-navSubMenu2"/>
           <asp:MenuItemStyle CssClass="ms-selectednavheader"/>
           <asp:MenuItemStyle CssClass="ms-selectednav"/>
    <telerik:RadPanelBar ID="QuickLaunchPanelBar" runat="server" DataSourceID="QuickLaunchSiteMap"
        Skin="Windows7" />

    Keep in mind that you need to set the same *DataSourceID *value for RadPanelbar to display the same site navigation structure in it.

  9. Find the SPNavigationManager control with id QuickLaunchNavigationManager, and alter its *QuickLaunchControlId *property to point to our RadPanelbar's id.


    <sharepoint:spnavigationmanager id="QuickLaunchNavigationManager" runat="server"
            quicklaunchcontrolid="QuickLaunchPanelBar" containedcontrol="QuickLaunch" enableviewstate="false">
  10. Save/check-in the default.master page and open an arbitrary page from the same SharePoint site to see the modification you applied.

The same sequence of steps is used to replace the default navigation on Telerik's SharePoint 2010 demo site.

In this article
Not finding the help you need? Improve this article