PDA

View Full Version : Extjs 4.2.1 - Draggable/Undraggable windows on the fly



GNainar
28 Dec 2014, 10:49 PM
In my application, I have 4 windows on the screen and all the windows are draggable.

My need is that, all the windows should be made draggable/undraggable on a click of a button(toggle).

I set draggable true/false on the fly. But, the property is not updated. I even closed and opened the window once the draggable property is changed. But, ended in vain.

I think, I need doLayout() kind of thing to update the change.

Any help is appreciated.

lumberjack
31 Dec 2014, 8:40 AM
See if the fiddle example below gets you started.

Regards,
Brian

https://fiddle.sencha.com/#fiddle/fon
fon