I am creating a radtreeview context menu with an item 'Open link in new tab'.
I have created a context menu server side and assigned it to all nodes, but problem is I need to set the NavigateURL property of the context menu and this is different for every node.
I tried using the OnClientContextMenuItemClicked and then tried using Window.Open in the javascript function:
function
ContextMenuClicked(sender, args) {
window.open(args._node._properties._data.value,
'_blank');
}
This function get the value property of the treeview node where the URL is stored, but unfortuanetely this doesn't work because it is stopped by the IE popup blocker.
I suppose I could create a unique context menu for every single node - but there might be hundreds of nodes and I worry this would make things slow.
Please can you think of a way I can solve this problem?
Many thanks for your help