More in this section

PanelBar help

10 posts, 0 answered
  1. Daniel
    Daniel avatar
    6 posts
    Registered:
    25 Aug 2008
    10 Nov 2008
    Link to this post
    Hello im fairly new with sitefinity. I have my page all set up but i want to ad the RAD panelBar as a menu directly from the sitefinity drag and drop control site. The only examples i can find are ones  that use visual studio to implement the control on a website.

    Is there any kind of step by step tutorial on how to ad this menu anywhere?

    Thanks in advance.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Nov 2008
    Link to this post
    Hello Daniel,

    Thank you for using our services.

    Open your page in edit mode, expand toolbox section, find navigation and drag and drop Site Panelbar. If you want to edit the control you can do this in design mode. Another option to edit this control is programatically navigating to the following path ~\Sitefinity\UserControls\Navigation35\

    I hope this helps.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Daniel
    Daniel avatar
    6 posts
    Registered:
    25 Aug 2008
    10 Nov 2008
    Link to this post
    Thanks for your quick respnd.

    Were trying to use RADcontrols and not the standard navigation tools.
    When inserting a simple navigation control, the menu populates itself, but when doing the same with an RAD Control, it doesn't show any data.

    We tried to add a SiteMapDataSouce and pointing the RAD Control to the ID of that datasource, as suggested in another forum post, but the only thing we achieved by doing so, was getting an error on our page.

    The error we got was sadly not very specific, as it only told us that our custom error page was disabled.

    Again thanks for your patience!
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Nov 2008
    Link to this post
    Hello Daniel,

    In Sitefinity we are using RadMenu, not a standard controls. Here is how we use it:

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="SiteMenu.ascx.cs" Inherits="UserControls_SitemapMenu" %> 
    <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
     
    <asp:SiteMapDataSource ID="SitemapDataSource1" runat="server" ShowStartingNode="false" /> 
    <telerik:RadMenu ID="RadMenu1" runat="server" Visible="true" DataSourceID="SitemapDataSource1" OnItemDataBound="RadMenu1_ItemDataBound"
    </telerik:RadMenu> 

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Daniel
    Daniel avatar
    6 posts
    Registered:
    25 Aug 2008
    10 Nov 2008
    Link to this post
    Sorry if we made it unclear what we're trying to achieve.

    I made a few screenshots to show what we're trying to figure out atm:
    Here's the control we're trying to put onto the site


    And here's the options in which we're trying to figure out what to write, to get the RAD PanelBar to get the data from our site map, just like the usual breadcrumbs etc. would do by itself.

    Since the solution is on a remote computer, we can't seem to find the websites we created with sitefinity.

    For example if I create a page called About us, and save it as about.aspx - We're not able to locate that "about.aspx" file on the server - So inserting the code by using visual studio is not an option atm., which is why we're trying to get the drag & drop RAD PanelBar (the one in the screenshot earlier) to work.

    Again, sorry for any confusion - As mentioned I'm fairly new to Sitefinity, and this also applies to asp.net.
  6. Daniel
    Daniel avatar
    6 posts
    Registered:
    25 Aug 2008
    10 Nov 2008
    Link to this post
    Edit: The second link is a wrong one - It should instead link to think:
    http://www.dchr.dk/asp/issue2.png
  7. Daniel
    Daniel avatar
    6 posts
    Registered:
    25 Aug 2008
    11 Nov 2008
    Link to this post
    I've been trying to get this to work for a few hours now - And all I'm getting is the following error:
    "The DataSourceID of 'RadMenu1' must be the ID of a control of type IDataSource.  A control with ID 'SiteMapDataSource1' could not be found."

    I've added two things to the site two try getting this to work:
    A "SiteMapDataSource" with the ID "SiteMapDataSource1"

    And a RadMenu with DataSourceID set to "SiteMapDataSource1"

    What exactly am I missing to get this to work?
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Nov 2008
    Link to this post
    Hello Daniel,

    You need to have data source control and RadMenu( for example or other rad control) in the same content place holder. The ID of the RadMenu ( Data> DataSourceID) should be the same as datasource control ID. The error throws that datasource ID could not be found. Probably the IDs are not set correctly. You could try using different IDs as well.

    Check out the following article related to the Data Binding Overview

    I hope this helps.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Daniel
    Daniel avatar
    6 posts
    Registered:
    25 Aug 2008
    11 Nov 2008
    Link to this post
    That did it!

    It seems to be getting data now, and we're not getting any errors.

    Thanks a lot for the help!
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Nov 2008
    Link to this post
    Hi Daniel,

    I am glad to hear the we finally have this working.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
10 posts, 0 answered