Window Draggable set to false

  1. #1

    Window Draggable set to false

    Hi Sir,

    Im planning to set window should not draggable for some cases and here is example

    Ext.WindowMgr.each(function (w) {
    if (w.xtype == "window") {
    if (w.isVisible() && !w.maximized) {
    w.draggable=false;
    }
    }
    });


    Server side code is working as expected but there was some issues with client side.
    I'm expecting window should not drag in desktop control.

    Thank you,
    Vamsi.
  2. #2
    Waiting for your reply
  3. #3
    Please try w.setDraggable(false);.

    Hope this helps.
    Geoffrey McGill
    Founder
  4. #4
    Thanks but setDraggable(false) is undefined and it seems no method available setDraggable.

    Here is the screenshot for your reference.

    Thank you,
    Vamsi.
    Attached Thumbnails Click image for larger version. 

Name:	dragg.png 
Views:	48 
Size:	22.0 KB 
ID:	25419  
  5. #5
    Hello Vamsi!

    I believe what you want is to w.dd.disable().

    Notice the cursor when hovering the titlebar will still suggest draggin, so you may want to dig further down to remove the CSS cursor-move icon by removing the .x-header-draggable CSS class from the window header bar's innerCt (and add back when you call w.dd.enable().

    You may also want to check whether w.dd is defined before trying to disable/enable it. DD stands for drag drop.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Draggable Window Issue
    By massman07 in forum 2.x Help
    Replies: 0
    Last Post: Apr 28, 2015, 3:49 PM
  2. [CLOSED] TreeColumn's Draggable set to true
    By RCN in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Mar 12, 2015, 5:24 PM
  3. Replies: 2
    Last Post: Sep 03, 2013, 4:04 PM
  4. Replies: 3
    Last Post: Dec 12, 2012, 2:10 PM
  5. [CLOSED] Avoid draggable window to be dragged out of screen
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 27, 2012, 4:35 PM

Posting Permissions