I have a ASP.Net app with a user control that contains the RadTreeView control. Currently the RadTreeView control does not have any double click event define. However, double clicking a node in the tree does collapse or expand it's child nodes. I assume this is the default behavior for the RadTreeView. This is the desired behavior we want.
I want to add an OnNodeClick event to this tree so a user can select a node and fire an event.
However, some pages that consume this user control don't want the OnNodeClick event. Instead they want to be able to just select/highlight a node. These are the same pages that want the Double click to expand and collapse the nodes.
When I add the OnNodeClick event to the RadTreeView user control, the pages that want the OnNodeClick event work as desired.
But the original pages that don't want the OnNodeClick event work OK except that the Double Click no longer collapses or expands the nodes. When double clicked, the node collapses then expands immediately.
How can I turn the OnNodeClick event off on some pages and on for other pages?
Or, can I programmatically define the OnNodeClick event dynamically on the pages that needs it?
I want to add an OnNodeClick event to this tree so a user can select a node and fire an event.
However, some pages that consume this user control don't want the OnNodeClick event. Instead they want to be able to just select/highlight a node. These are the same pages that want the Double click to expand and collapse the nodes.
When I add the OnNodeClick event to the RadTreeView user control, the pages that want the OnNodeClick event work as desired.
But the original pages that don't want the OnNodeClick event work OK except that the Double Click no longer collapses or expands the nodes. When double clicked, the node collapses then expands immediately.
How can I turn the OnNodeClick event off on some pages and on for other pages?
Or, can I programmatically define the OnNodeClick event dynamically on the pages that needs it?