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

[Solved] OnClientDoubleClick doesn't fire

1 Answer 172 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Peter Zolja
Top achievements
Rank 1
Peter Zolja asked on 10 Apr 2008, 05:09 PM
OnClientDoubleClick does not fire if there is a OnNodeClick specified. Is this by design or a bug?

Could not find anything in the documentation one way or another.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 14 Apr 2008, 10:34 AM
Hello Peter Zolja,

When the OnNodeClick server event is attached, clicking a node initiates a postback to the server. The second click that fires the OnClientDoubleClick client-side event happens afterwards and even if it has enough time to execute the client event handler, the browser very soon loads the page requested by the postback.

While this is not a limit imposed by the TreeView and the OnClientDoubleClick does fire, it just happens too later for any changes to take effect. This is a limitation of how browsers and the ASP.NET postback mechanism work.

Sincerely yours,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Peter Zolja
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or