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

How to disable “expand/collapse on client double click”?

3 Answers 418 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 18 Dec 2008, 10:09 PM

Hello,

 

I am using a RadTreeView control that uses an “OnClientDoubleClick” event that changes based on the state of the page.  The functions tied to this event are working correctly.  My issue is that on every double click, if the node has children, the node is expanded/collapsed based on its state.  Is there a way to disable the “expand/collapse on client double click” functionality?

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 20 Dec 2008, 12:34 PM
Hello John,

I have prepared a small page which shows how to accomplish this.

Please download it and give it a try.

I hope this helps.

All the best,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andy
Top achievements
Rank 1
answered on 29 Jul 2009, 10:50 AM
I'm having the same problem and I've tried your suggestion but your proposal prevents all forms of node expand/contract. This means that clicking on the +/- symbol to expand/collapse a node on the tree stops working too.

Do you have any other ideas about how to stop double-click from toggling the expand/collapse?
0
Andy
Top achievements
Rank 1
answered on 29 Jul 2009, 11:02 AM
Sorry, my mistake. I didn't follow the example properly and it does work...
Tags
TreeView
Asked by
John
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Andy
Top achievements
Rank 1
Share this question
or