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

Forums / Developing with Sitefinity / RadMenu binding

RadMenu binding

4 posts, 0 answered
  1. Danni Veng
    Danni Veng avatar
    7 posts
    Registered:
    21 Sep 2009
    25 Nov 2009
    Link to this post
    Dear support,

    I'm a newby and is now setting up my Master Template. But I have som problems with the RadMenu. Here is what I have done so far: 1) The whole Site Map with pages is done. 2) I have placed an GenericControl and dragged a RadMenu into it. But it does not show my Site Map and I've tried to do many things - but I'm lost. Can you help me?

    Regards,
    Danni


     
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Nov 2009
    Link to this post
    Hello Danni Veng,

    Use SiteMap control or modify the RadMenu control as shown below:

    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
    <telerik:RadMenu  EnableSelection="true" ID="RadMenu1" runat="server" DataSourceID="SitemapDataSource1">
    </telerik:RadMenu>


    Best wishes,
    Ivan Dimitrov
    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. Danni Veng
    Danni Veng avatar
    7 posts
    Registered:
    21 Sep 2009
    25 Nov 2009
    Link to this post
    Ehhh, where do I put that code... sorry Ivan...:-). We have tried to change values of the DataSourceID property in the control - but we get an error message.

    The DataSourceID of 'tm_RadMenu1' must be the ID of a control of type IDataSource.  A control with ID 'SiteMapDataSource1' could not be found.


  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Nov 2009
    Link to this post
    Hello Danni Veng,

    "Use SiteMap control or modify the RadMenu control as shown below:" Is there a particular reason for not using SiteMenu control which is RadMenu control. The error you are getting is because you need to add SiteMapDataSource control and RadMenu control in the same naming container. Then you need to set SiteMapDataSource ID to the RadMenu DataSourceID property.

    Greetings,
    Ivan Dimitrov
    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.
Register for webinar
4 posts, 0 answered