More in this section

Forums / Developing with Sitefinity / Optimizing SitePanelBar

Optimizing SitePanelBar

5 posts, 0 answered
  1. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    14 Oct 2009
    Link to this post
    Hi!
    I want to prevent loading full SitePanelBar data on page: it loads full sitemap and I don't need it. I think that optimizing this part will help me to improve perfomance of my site. How can I do this? Maybe SitePanelbar has some option which I need to disable?
    Thank you. 
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Oct 2009
    Link to this post
    Hello Paul,

    Thank you for using our services.

    Quick and easy way to prevent the Site Panelbar control form loading the whole site map would be to set the MaxDataBindDepth property in order to make it load just a few levels of the navigation. To do this you can go to edit the control go to Misc section and select Edit the PanelBar property. Then go to section Data and set the MaxDataBindDepth (see attached image).

    Kind regards,
    Radoslav Georgiev
    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. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    14 Oct 2009
    Link to this post
    Hi Radoslav!
    Thank you for advise but it didn't resolve my problem. If I set MaxDataBindDeth to 2 all my pages on lower level will show as they are not in SitePanelBar. I tried to set MaxDataBindDepth to 6(max level for me) and page shows i SitePanelBar correctly but in source of page I see full SiteMap and this is not correct. =( 
    Can you suggest something else?
    Thank you.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Oct 2009
    Link to this post
    Hi Paul,

    Thank you for getting back to me.

    I have forgotten to mention that with this property you will not see parent nodes expanded if a page is bellow the max data bind depth. Other considerations you might want to check out would be to set pages not to be shown in navigation if you do not want them loaded in navigation controls. This can be set from a page's properties tab (see image). If you have a very big Site Map the best approach for using optimized navigation control would be using Site Tree View control and enabling it to use Load on Demand - more information on how to enable it in this demo.

    If you have more questions, please feel free to contact us.

    Regards,
    Radoslav Georgiev
    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. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    19 Oct 2009
    Link to this post
    Hi Radoslav!
    Thank you for suggestions!
    I will try to make same template for sitetreeview.

Register for webinar
5 posts, 0 answered