How to Achieve Drag & Drop Item Reordering in VisualNEO Web in Responsive Mode? - Forum

Forum Navigation
You need to log in to create posts and topics.

How to Achieve Drag & Drop Item Reordering in VisualNEO Web in Responsive Mode?

I'm currently working with VisualNEO Web and need to implement drag-and-drop functionality for re-arranging items at runtime. My project is responsive, and I'm encountering issues with maintaining the correct layout and functionality when dragging and dropping items on different screen sizes.

Has anyone successfully implemented this feature in a responsive mode? Any tips or guidance on how to achieve this would be greatly appreciated!

Uploaded files:
  • You need to login to have access to uploads.

@asmat, have you tried neoSort Plugin?

Thank you, Mr. Luis. That’s fantastic

NeoSort Plugin works beautifully on computers, but it doesn't function properly on touch devices such as mobiles, tablets, or computers with touch screens. Any suggestions for making it touch-compatible?"

Uploaded files:
  • You need to login to have access to uploads.

@asmat neoSort should work perfectly on touch screens. This is the official JavaScript library demo and it works for me:

https://sortablejs.github.io/Sortable/

I'm using the neosort plugin within a dialog, and I’ve run into an issue on touchscreens. The drag-and-drop functionality works, but the object being dragged is offset from my finger, making it difficult to accurately position the items. Additionally, I’m unable to check or recheck checkboxes that are also inside the dialog.

  • The issue only occurs on touch devices (it works fine with a mouse).
  • The dialog contains a list of sortable items, and each item has a checkbox.

I've attached the relevant files for reference. You can also check out the live demo of the issue at this link: KankorPlus Demo.

Any help in resolving this would be appreciated!

Thank you.

Uploaded files:
  • You need to login to have access to uploads.

@asmat I think the issue is not related just to touch devices but to touch devices when using a custom dialog.
Please try to use an independent page instead of a custom dialog and let me know if the problem goes away.
Thank you!

Hi @luishp

how to reorder lines in the design if you haven't created the elements in the right order ?

Hi @phil78, I don't understand your question very well.
Have you tried to right-click the item you want to order in the design area and choosing Bring to Front and Send to Back options?
Note that you can even select many items at a time before right-clicking.

Regards.

thanks @luishp

yes, it works, but I didn't understand the function so I thought I'd put in foreground or background.

@phil78 when you are working with absolute positioning it brings the object to the front or sends it to the back.
When working on a responsive design, it sends the object to the beginning or to the end of the Page or the Container it's placed.

I hope you have now solved your doubt :)

Phil78 has reacted to this post.
Phil78