5 Answers, 1 is accepted
0
Phil
Top achievements
Rank 1
answered on 04 Sep 2015, 02:04 PM
Also is there a way to just bind a target property to the object that im binding it to like we do for DataTextField and DataNavigateUrlField?
0
Hello,
The RadNavigation does not have a DataTargetField property. Setting the Node's target can be done on the client, for example in the OnClientNodeClicking handler. To do so you can subscribe to the event and call the node's set_target() method in event's handler as shown below:
Regards,
Ivan Danchev
Telerik
The RadNavigation does not have a DataTargetField property. Setting the Node's target can be done on the client, for example in the OnClientNodeClicking handler. To do so you can subscribe to the event and call the node's set_target() method in event's handler as shown below:
function
OnClientNodeClicking(sender, eventArgs) {
var
node = eventArgs.get_node();
node.set_target(
"_blank"
);
}
Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 08 Sep 2015, 02:44 PM
Is there a way to do this server site?
0
Phil
Top achievements
Rank 1
answered on 08 Sep 2015, 02:44 PM
Err i mean "server side"
0
Hello,
Yes, you can set a node's Target property server-side by accessing it in the RadNavigation's Nodes collection by index or finding it by Text/Url:
Regards,
Ivan Danchev
Telerik
Yes, you can set a node's Target property server-side by accessing it in the RadNavigation's Nodes collection by index or finding it by Text/Url:
RadNavigation1.Nodes[0].Target =
"_blank"
;
RadNavigation1.FindNodeByText(
"Root1"
).Target =
"_blank"
;
RadNavigation1.FindNodeByUrl(
"http://www.telerik.com"
).Target =
"_blank"
;
Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items