ui-grid-draggable-rows icon indicating copy to clipboard operation
ui-grid-draggable-rows copied to clipboard

How cancel or forbid drag & drop in tree view in another branches?

Open mletov opened this issue 8 years ago • 2 comments

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!

mletov avatar Jan 30 '17 08:01 mletov

Hi @mletov,

unfortunately, it's not possible in the current version of this plugin.

Kind Regards, Szymon

skrajewski avatar Jan 31 '17 20:01 skrajewski

Any progress here (or a work around)?

bcruddy avatar Jun 20 '17 15:06 bcruddy