This is a migrated thread and some comments may be shown as answers.

TargetField RadNavigation

3 Answers 85 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Iron
Kjell asked on 20 Apr 2017, 07:43 PM

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>

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Apr 2017, 02:00 PM

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.
0
Kjell
Top achievements
Rank 1
Iron
Iron
answered on 26 Apr 2017, 08:14 AM

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?

0
Marin Bratanov
Telerik team
answered on 26 Apr 2017, 10:56 AM

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.
Tags
Navigation
Asked by
Kjell
Top achievements
Rank 1
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Kjell
Top achievements
Rank 1
Iron
Iron
Share this question
or