TargetField RadNavigation

4 posts, 0 answers
  1. Kjell
    Kjell avatar
    212 posts
    Member since:
    May 2011

    Posted 20 Apr Link to this post

    How set TargetField from SqlDataSource like i set url from DataNavigateUrlField?

    In telerik:RadMenu i set:

    <telerik:RadMenu ID="RadMenu1" DataSourceID="Menu" DataFieldID="NodeId" DataFieldParentID="ParentNodeId" DataNavigateUrlField="NavigateUrl" DataTextField="sidnamn"
        OnItemDataBound="RadMenu1_ItemDataBound" Skin="Bootstrap" RenderMode="Auto" Width="100%" runat="server">
        <DataBindings>
            <telerik:RadMenuItemBinding Depth="0" TargetField="target" runat="server" />
            <telerik:RadMenuItemBinding Depth="1" TargetField="target" runat="server" />
        </DataBindings>
    </telerik:RadMenu>
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3916 posts

    Posted 24 Apr Link to this post

    Hi Kjell,

    You can use the ItemDataBound event to set additional properties of the menu items: http://docs.telerik.com/devtools/aspnet-ajax/controls/menu/data-binding/overview.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Kjell
    Kjell avatar
    212 posts
    Member since:
    May 2011

    Posted 26 Apr in reply to Marin Bratanov Link to this post

    Yes, i now, The example I wrote was about RadMenu :-)

    But my question was about RadNavigation. I can not see that I can use ItemDataBound for RadNavigation.

    How set TargetField from SqlDataSource like i set url from DataNavigateUrlField for RadNavigation?

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3916 posts

    Posted 26 Apr Link to this post

    Hello Kjell,

    The same approach is valid for the Navigation control: http://docs.telerik.com/devtools/aspnet-ajax/controls/navigation/data-binding/server-side. I'm attaching here a basic example based on this data source.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top