How to add more behavior in drag:"order"

Hello webix team…

I made a treetable with drag:“order” here http://webix.com/snippet/ef3d197d

I can add a behavior so that items which have parent won’t be dragged. But I can’t disable items to drop as a child. It seems the onBeforeDrop is not working. Is it controlled by drag:“order” ? How to expand it?

Please help. Thank you.

You need to use the onBeforeDropOrder event:

http://webix.com/snippet/32f68184

Well that’s new to me. Thanks a lot for pointing it out. It works perfectly.