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

columnDrag event payload insertBefore property is incorrect #7071

Closed
marciogurka opened this issue Jun 23, 2023 · 0 comments
Closed

columnDrag event payload insertBefore property is incorrect #7071

marciogurka opened this issue Jun 23, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@marciogurka
Copy link

Forum post

"Hi, we're trying to programatically disable the ability to drag columns into a certain area within a grid and we're having issues with the columnDrag event, which sounds like it should do the job for us.

We believe our only option is to use the insertBefore property on the event to determine if the drop is valid or not, however we're seeing that the insertBefore value is the HTML element for the column, not the bryntum column itself.
I've reproduced it here, just open up the console and try dragging the first name column around. You'll see that the thing logged out is definitely not a bryntum Column!
https://codepen.io/GJFForce/pen/bGQBWRg?editors=1011

Is this expected? Is there a workaround? And finally, is there a way to prevent column drags into a specified grid region entirely using the columnDrag event handler? We've had no luck so far in knowing whether a column is being dragged to the end of the locked region, or the start of the unlocked region, as the position is the same from the perspective of the column store. If there is an alternative approach available to us it would be most welcome!"

We need to update the documentation or update the payload to match the current documentation

@marciogurka marciogurka added bug Something isn't working premium forum Issues from forum OEM OEM customer labels Jun 23, 2023
@matsbryntse matsbryntse self-assigned this Jun 24, 2023
@matsbryntse matsbryntse added the ready for review Issue is fixed, the pull request is being reviewed label Jun 24, 2023
@arcady-zherdev arcady-zherdev added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Jun 26, 2023
@SergeyMaltsev SergeyMaltsev added this to the 5.3.8 milestone Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants