This is a migrated thread and some comments may be shown as answers.

OnNodeEdit triggers OnNodeClick

3 Answers 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 Oct 2008, 07:20 PM
Hello all,

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

Sort by
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.
0
John
Top achievements
Rank 1
answered on 10 Oct 2008, 11:24 AM
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.
Tags
TreeView
Asked by
John
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
John
Top achievements
Rank 1
Share this question
or