Disable auto expand on drag over?

3 posts, 0 answers
  1. Radovan Radic
    Radovan Radic avatar
    7 posts
    Member since:
    Sep 2009

    Posted 16 Oct 2009 Link to this post

    Hi,

    Is there a way to disable node expanding when drag is over the node? I have read somewhere that this is by default, and it seems you wanted to implement this to have windows like feature. But, I need to be able to disable this. Is there some workaround for this on client side?

    Another issue related to dragging. When list of nodes is long and I need to drop node at the bottome of the treeview which is not displayed on the screen, auto-scroll does not work. It does not work on IE or Firefox. This can be achieved by using mouse scrolling wheel, but this is something our clients wont like.

    Thanks,
    Radovan
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 19 Oct 2009 Link to this post

    I'm not sure if this event gets called when you drag an item but you could take a look at the OnclientNodeExpanding event. You could set up a conditional statement to cancel the event if you are dragging a node.
  3. Radovan Radic
    Radovan Radic avatar
    7 posts
    Member since:
    Sep 2009

    Posted 22 Oct 2009 Link to this post

    Hi Schlurk,

    Thanks for the idea, this way it works as I wanted:

    function ClientNodeExpanding(sender, eventArgs) {  
               if (sender._dragging) {  
                       eventArgs.set_cancel(true);  
               }  


    Radovan
Back to Top