EasyUI Forum
May 16, 2024, 01:39:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Treegrid DnD the same level nodes  (Read 7006 times)
sharvesh
Newbie
*
Posts: 1


View Profile
« on: November 07, 2013, 11:37:42 PM »

Hi,

I'm new to treegrid by easyui.
I have also used the extension "Drag and Drop Rows in TreeGrid"
I'm having an issue for my project. The extension works great, its just that i'm wondering is it possible for me to allow drag and drop only within its own level.

let me try to explain.
I only have tree levels

*A
*AA
*AAA
*AAB

*B
*BB
*BBB

What i need to do is
*A
*AA
*AAA
*BBB

*B
*BB
*AAB

Every level have a different content so i need to make sure the level stays but its DnD to any nodes as long as it maintains its level.

Appreciate is someone could advise/guide me on how to do this.
Thanks in advance!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 09, 2013, 05:28:16 PM »

Try using 'onBeforeDrag','onDragOver' or 'onBeforeDrop' events to determine if to drop a row.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!