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

Is there a way to prevent a node from moving? #223

Open
RodriFS-InflightVR opened this issue Jan 24, 2019 · 3 comments
Open

Is there a way to prevent a node from moving? #223

RodriFS-InflightVR opened this issue Jan 24, 2019 · 3 comments

Comments

@RodriFS-InflightVR
Copy link

Hi, Ben!

I have a tree with folders and files and I want to prevent a folder to be nested under a file when dragging. The problem is that I don't have an event for when I start dragging to check what object I'm dragging and an event for where the object is about to be moved to freeze the grid or alert the user and roll back the row to it's original position.

Thanks!

@Phenixer
Copy link

Phenixer commented Aug 2, 2019

+1 We have a tree where some "tip" nodes must not have children.

@baloraki
Copy link

Hi,
has anyone found a solution?

@RodriFS-InflightVR
Copy link
Author

Hi,
has anyone found a solution?

Hi, baloraki. What I did is check which row was moved, and if it is an invalid movement, or I don't want the user to move that row, I roll back the grid state to the previous state before it was moved

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

No branches or pull requests

3 participants