PDA

View Full Version : Disable TreeViewDragDrop programatically



daviddayag
26 Jul 2015, 11:57 PM
Hi,
I need to create a button that enables / disables this in runtime.
I tried setting enableDrag = false -> nop effect.
I tried the destroy() method -> it disables the drag drop but there is a js exception everytime I try to drag and I cant enable it back again. (Uncaught TypeError: Cannot read property 'dom' of null)

Please help ASAP.
thanks!

tristan.lee
28 Jul 2015, 5:43 PM
What version of the framework are you using? The solution I posted in the other thread works well on 4.2.3 without errors. https://www.sencha.com/forum/showthread.php?300109-How-me-disallow-Drag-and-Drop-in-treepanel