ui-grid-draggable-rows
ui-grid-draggable-rows copied to clipboard
How cancel or forbid drag & drop in tree view in another branches?
Hello Help me, please. I am using draggable with Tree View. And i need to forbid drag row to another branch. Or as variant cancel d&d if rows are in another branches or levels.
Example
$scope.gridData.onRegisterApi = function (gridApi) {
gridApi.draggableRows.on.beforeRowMove($scope, function (from, to, data) {
if (from.data.parentId != to.data.parentId)
{
//action to cancel draggable
}
});
};
Thank you!
Hi @mletov,
unfortunately, it's not possible in the current version of this plugin.
Kind Regards, Szymon
Any progress here (or a work around)?