On my tree I have the OnNodeEdit and OnNodeClick events but every second time I double click on a node the OnNodeClick event fires, anyone else expereince this?
Thanks
3 Answers, 1 is accepted
0
Veselin Vasilev
Telerik team
answered on 10 Oct 2008, 09:05 AM
Hello John,
Indeed, this is the expected behavior. If you click once on a node - the NodeClick event is fired.
You can click on F2 button to edit the node as well.
All the best,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Hello and thanks for the reply. Shouldn't double clicking only fire the edit trigger and not the single click trigger?
0
Veselin Vasilev
Telerik team
answered on 10 Oct 2008, 12:18 PM
Hello John,
The browser throws first the click and then the doubleclick events. That is why when the treeview receives the click event and you have subscribed to the NodeClick event - a postback occurs.
The treeview cannot know that a doubleclick event is coming after the click event.
Best wishes,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.