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

Panelbar

11 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    26 Jul 2007
    Link to this post
    Hello,

    I've created a custom PanelBar usercontrol that shows the sitemap inside my website.

    I want to know if it is posible to show the whole sitemap all the time, so on every page all the menu options. Of course expanding and collapsing should be possible.

    I don't know how to achieve this with the SiteMapProvider?

    Any ideas?

    Thanks,
    Daniel
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    26 Jul 2007
    Link to this post
    Hello Daniel,

    In SP2 there is a similar User Control that represents a wrapper for RadPanelbar and SitemapDataSource. It could be found in ~/Sitefinity/UserControls/SitePanelbar.ascx. I am sending you the control as an attachment.

    Hope this helps.

    Kind regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    26 Jul 2007
    Link to this post
    Hi Pepi,

    Thanks for the reply.

    I understand how the panelbar works and also noticed the Navigation Controls in SP1/SP2.

    I just want the panelbar to be collapsed all the time on every page.
    Or, better, have some influence on this behavior.

    Should I make modifications to the control that comes with Sitefinity, or make a new one based on the one you send me?

    Thanks,
    Daniel
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    27 Jul 2007
    Link to this post
    Hello Daniel,

    It’s better to create your own User Control because after upgrading Sitefinity you could loose your changes. You could use Expanded property of RadPanelItem object to control collapsing of the items. For example if you want all the items to be expanded on every page you should add this piece of code e.Item.Expanded = true; in the handler of OnItemDataBound event. You could find more detailed information for the RadPanelbar control in online documentation http://www.telerik.com/help/aspnet/panelbar/

    Hope this is useful for you.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    27 Jul 2007
    Link to this post
    Hello Pepi,

    That was what I was thinking, yes. So I did it the exact way you described. It works, that's one step :)

    What I would like to achieve at the end is that the PanelBar opens the first time. (all expanded). Then, if I user expand/collapse a group, it would remember this during navigation through the site.

    Is this possible?

    Thanks,
    Daniel
  6. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    27 Jul 2007
    Link to this post
    Hello Daniel,

    Have a look at this online demo RadPanelbar Demo. The most important thing is that you should set PersistStateInCookie property of the RadPanelbar to true in order to save the state when navigating between pages. I think it's just what you need.

    Hope this helps.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    31 Jul 2007
    Link to this post

    Hello Pepi,

    Just one more question about the panelbar:

    I created a new page which is of the type 'Page Group'. It has 2 sub-pages beneath it.

    For some reason the page is not appearing inside the SidePanelbar. The visible property is 'True; ,but that doesn't matter.

    What could be wrong? Is there some class inside the panelbar stylesheet that represents this Page Group?

    Thanks,

    Daniel

  8. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    31 Jul 2007
    Link to this post
    Hello Daniel,

    First of all, check if "Show in navigation" property of the group page is set to Yes. If this property is configured correctly, please have a look at this thread http://sitefinity.com/support/forums/support-forum-thread/b1043S-mhmht.aspx ;the described problem is similar but it's related to another navigation control . If the suggested decision doesn't help you, could you please send us more detailed information to reproduce this issue?

    Thanks for your cooperation in advance.

    All the best,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    31 Jul 2007
    Link to this post
    Hi Pepi,

    For some reason it is showing okay now. I think I did something wrong by replacing my custom SitePanelbar with the default SitePanelbar. My mistake...

    But I have to say that I looked inside the 'sf_PageBase' table where the 'Ordinal' field was messed up after I did some re-ordering of pages. Pages that should be on level 2 were on level 0. I have corrected this and at the same time put back my custom SitePanelbar, so I'm not sure what did the trick.

    It seems if I use the Sitefinity interface to re-order pages (by drag-and-drop), the Ordinal field is set to 0. Maybe I'm wrong...

    Thanks,
    Daniel
  10. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    01 Aug 2007
    Link to this post
    Hi Daniel,

    I checked the Ordinal field in sf_PageBase table after reordering by drag and drop and its value was properly set for each page. Maybe you are confused by the fact that the Ordinal field for sub-pages of a specific page starts again from 0.

    Don’t hesitate to contact us if you come up with more questions.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  11. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    01 Aug 2007
    Link to this post
    Hi Pepi,

    Thanks for the explanation. I didn't know the Ordinal starts from 0 again.
    Anyway, I hope the other problem will be solved, so I can finish my site.

    I'm still very satisfied with Sitefinity as a product!

    Greetings,
    Daniel
Register for webinar
11 posts, 0 answered