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

Rad PanelBar

8 posts, 0 answered
  1. Paul Berger
    Paul Berger avatar
    61 posts
    Registered:
    03 Apr 2006
    26 Feb 2007
    Link to this post
    Hi Guys

    Using firefox I dropped a RadPanelBar onto the page. As soon as I dropped it I got an error.

    "There was an error rendering the control, Object reference not set to an instance of an object"
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    26 Feb 2007
    Link to this post
    Hi Paul,

    It is a known issue. We are still working on improving the design time support for controls. Please note that this will not prevent the control from working properly and you can edit its properties. The page will not throw an error and will still be functional, though it will display the "Error rendering control!" message.

    Greetings,
    Rebecca
    the telerik team
  3. Paul Berger
    Paul Berger avatar
    61 posts
    Registered:
    03 Apr 2006
    27 Feb 2007
    Link to this post
    I drop the panelbar onto a template but it does nothing. There is no pages or data being loaded into the panelbar.

    How can I load the pages?

    In the previous versions of sitefinity on my second level pages I loaded all the second level pages in a panelbar for easy navigation. How can I achieve this in the new version of sitefinity?
  4. Slavo
    Slavo avatar
    13 posts
    Registered:
    21 May 2013
    28 Feb 2007
    Link to this post
    Hi Paul,

    You are right. In the old version of Sitefinity you did not have to do anything in order to setup a panelbar navigation control. In the new version though, the datasource for the panelbar is not set automatically and you have to do it manually. For the purpose, drop a SiteMapDataSource control on your template and set its ID property. Then drop a radPanelBar control, click edit, and in the Data section set the DataSourceID property to the ID of the SiteMapDataSource you have specified. This should work for a one-level page hierarchy.
    It does not display child pages, though.
    If you want to display a hierarchical view, the only way to do it with panelbar is to create a user control containing the panelbar and do the logic in code, but I suggest using another control for navigation.

    Kind regards,
    Slavo
    the telerik team
  5. jessenaiman
    jessenaiman avatar
    23 posts
    Registered:
    06 Feb 2007
    01 Mar 2007
    Link to this post
    What is the ParentID and IndexID? I've loaded my own control but could you please clarify how the sitemap is loaded? Thanks, and sorry for repeating myself I just really need the answer.
  6. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    01 Mar 2007
    Link to this post
    Hi Jesse,

    The navigation in Sitefinity is implemented in the standard way for ASP.Net. Navigational controls such as menus, tree views, tabstrips, etc., are bound to SiteMapDataSource control. Please see MSDN documentation for SiteMapDataSource http://msdn2.microsoft.com/en-us/library/ms227441.aspx.


    If you want to populate a navigational control programmatically, you should use System.Web.SiteMap class. http://msdn2.microsoft.com/en-us/library/system.web.sitemap.aspx

    You can also see this link for general information on Site Maps: http://msdn2.microsoft.com/en-us/library/yy2ykkab.aspx


    Sorry but I don’t understand this question: "Where those ParentID and IndexID come from?".

    Can you please clarify?

    Best wishes,
    Bob
    the telerik team
  7. jessenaiman
    jessenaiman avatar
    23 posts
    Registered:
    06 Feb 2007
    01 Mar 2007
    Link to this post
    I'm trying to determine what causes the panelbar to only show 1 level. I would like to implement hierarchy in the navigation. I know I've been advised to use the menu, but my company insists on creating a template with that type of navigation and functionality.
  8. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    02 Mar 2007
    Link to this post
    Hi Jesse,

    The panelbar shows only one level due to the fact that after clicking in one of the items, it redirects you to the page you have clicked on (if the panelbar is databound to a sitemap datasource). When you are redirected to the corresponding page, the panelbar is databound one more time and shows the first level again. The only solution here is to create a user control which tells the panelbar which item to expand further according to the page where the user control is.
    Hope this clarifies the situation.

    Kind regards,
    Vassil Daskalov
    the telerik team
Register for webinar
8 posts, 0 answered