i got the same problem,
i set the docking mode to “docked”, but see no difference with the default mode
i can still drag windows anywhere outside the docking, and they become floating.
isn’t “docked” mode preventing any window to become floating ?
anyway, i wrote a few lines of codes to get the docked behaviour (might be slower, but it works fine for me)
the key is to use the dragEnd event, check the layout and put back any floating window into the docking again.
$('#docking').on('dragEnd', function() { var layout = JSON.parse($('#docking').jqxDocking('exportLayout')); $.each(layout.floating, function(k) { //items is a global array containing all the id of the windows in the docking //using it's length allows us to put the floating window back in last position $('docking').jqxDocking('move', k, 0, items.length); });});
I have to go through the exportLayout as there is no way to get information about the window except it’s id from the event.
I hope this help
regards
Khaldryck