9 Answers, 1 is accepted
You can handle the ClientNodeClicked event and set it to node.set_selected(false). This way, the node will be expandable on dblClick, but never selected.
Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
I have stopped items that I do not want to be selected by using node.set_selected(false) and that worked fine until I added a server-side OnNodeClick event. Now although the node is deselected it still continues to call the OnNodeClick event. How can I stop this event from hapenning?
I have stopped items that I do not want to be selected by using node.set_selected(false) and that worked fine until I added a server-side OnNodeClick event. Now although the node is deselected it still continues to call the OnNodeClick event. How can I stop this event from hapenning?
Please try to set AutoPostBack to false for the nodes whose OnNodeClick event you do not need to fire.
Best wishes,
Kate
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
"I have stopped items that I do not want to be selected by using node.set_selected(false) and that worked fine until I added a server-side OnNodeClick event. Now although the node is deselected it still continues to call the OnNodeClick event. How can I stop this event from hapenning?"
- You can handle the ClientNodeClicking event and cancel the actual click - args.set_cancel(true). Also you will have to move the functionality from ClientNodeClicked event (since it will not fire after you cancel the click).
Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Why isnt there just a property of a RadTreeView, lets say NodesSelectable?
In all threads about this in this forum, answers are formed like this:
_Try_ this: client side scripting solution, as in: "bash your head with some workaround solutions".
Currently the RadTreeNode object does not expose public property defining whether a node can be selected or not. If you think that this feature would add considerable value to the functionality of our RadTreeView control, you con log a Feature request in our public Feedback portal.
Regards,
Veselin Tsvetanov
Telerik