Hi,
If i use function locked, i get stack-item and want lock it, but if i lock with true i can move with this item.
$(".grid-stack").on('dblclick', function (event, ui) {
var grid = $('.grid-stack').data('gridstack');
var el = event.target;
if (el != null) {
grid.locked(el, true);
}
});
Hi,
locked means it won't be moved by other widgets (when you drag another widget). To make it completely freeze you have to call movable(el, false) and resizable(el, false). Please check to README file.
Hi @troolee
I have tried the code provided by @tomasjurasek and turns out he was right. Even when i resize the widget over that widget (whose locked = true) that widget still leaves its place and goes below.
But if i hardcoded the locked: true in gridstack.js then it works fine.
Please look into it.....