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

4 posts, 0 answers
  1. John
    John avatar
    1 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2008 Link to this post

    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

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 20 Dec 2008 Link to this post

    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.
  3. Andy
    Andy avatar
    25 posts
    Member since:
    Nov 2008

    Posted 29 Jul 2009 Link to this post

    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?
  4. Andy
    Andy avatar
    25 posts
    Member since:
    Nov 2008

    Posted 29 Jul 2009 Link to this post

    Sorry, my mistake. I didn't follow the example properly and it does work...
Back to Top