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

Sorting in Target Dropzone lost after config of ONDrop event #16

Closed
WouterKessener opened this issue Dec 22, 2022 · 3 comments
Closed

Comments

@WouterKessener
Copy link

Scott.Question.DD.540.mp4

Looks like the onDrop event is messing with the sorting of the items in de target DropZone.

@scottdurow
Copy link
Owner

Hi @WouterKessener - thanks for logging this.

The problem is likely to be that you have not updated the column that is being used to sort by. You'll need to use the updated position in the CurrentItems to patch a column that you use to sort the rows using.

When you patch the source records the control will re-render with what ever sort you give it, so it will need to reflect the updated position.

Hope this helps - and thank you again for your support.

Scott

@WouterKessener
Copy link
Author

@scottdurow Aha yes yes.. thanks. Got it to work. Cannot really patch the real source record but by using collections it works like a charm. Had to add a little extra to the OnDrop event. Created a small vid to explain myself and hopefully help others facing the samen 'issue'

SD.Sorting.Solved.sd.mp4

Have a great one.

@scottdurow
Copy link
Owner

Thank you for the excellent information and all your support!

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

2 participants