Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mletov opened this issue Jan 30, 2017 · 2 comments
Open

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

mletov opened this issue Jan 30, 2017 · 2 comments

Comments

@mletov
Copy link

mletov commented Jan 30, 2017

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!

@skrajewski
Copy link
Contributor

Hi @mletov,

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

Kind Regards,
Szymon

@bcruddy
Copy link

bcruddy commented Jun 20, 2017

Any progress here (or a work around)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants