|
Title: Tree drag&drop (disable children) Post by: Szoron on November 20, 2016, 12:32:59 PM Given a list of what component tree is displayed.
I want to sort the contents of the list with drag & drop. It would be just sort order. However, I would not like nesting (children) How can this be disabled? before (http://www.kephost.com/images/2016/11/20/Kepernyofoto2016-11-20-20.24.41.jpg) after (http://www.kephost.com/images/2016/11/20/Kepernyofoto2016-11-20-20.25.12.jpg) wrong after (http://www.kephost.com/images/2016/11/20/Kepernyofoto2016-11-20-20.25.23.jpg) Title: Re: Tree drag&drop (disable children) Post by: stworthy on November 21, 2016, 05:34:21 PM Returning false in the 'onBeforeDrop' event will abort the dropping action. The code below shows how to disable the dnd on different levels.
Code: $('#tt').tree({Title: Re: Tree drag&drop (disable children) Post by: Szoron on November 22, 2016, 02:15:31 AM perfect!
thank you! |