Skip to content

Prevent rows from being dropable when using draggable feature #2101

@Autoflow

Description

@Autoflow

Summary
I'd like to prevent rows from being dropable on some specific rows when using the draggable feature.

Version
version 4.21.22

Additional context
To prevent rows being dropable on some other target rows i tried following:

grid.on('drag', ev => {
if(!ev.appended) return false;
})

and

grid.on('drag', ev => {
if(!ev.appended) ev.stop();
})

In both cases i was not able to stop dropping on the target row.
As i use a materialized path data model and not a nested model my goal is to only drop appended rows as child nodes.

Is there an easy way to achive this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions