Topic: Disable root node dragging

Hello, I need to set each root node to disable dragging. Is it possible any way?
Thanks for any help

regards
Paul

Re: Disable root node dragging

try add dragDisabled=true property

tree.root.set({property:{dragDisabled: true}});

Re: Disable root node dragging

hmm, it seems it doesn't work:/
I tried something with dragDisabled

onDrag: function(){
                    var node=tree.selected;
                        if (node.isRoot() = true)
                            this.dragDisabled = true;
                        }

but i quess it is incorrect form,
I will be appreciate for any help

thanks
Paul

Re: Disable root node dragging

dragDisabled property works for me, demo, archive

Re: Disable root node dragging

I've spend couple of hours, Trying different ways to to that, until i try to replace js class from the archive you attached. Now  it works great, I had old  version before. Thanky you very very much

regards
Paul