Replies: 7 comments
-
Hi Dean, Currently, none of this is supported properly. I should have mentioned it clearly in the documentation, and added defensive coding to disable the _dnd keyword when groups are found. But I could find a way to make it work. How would you see it? Here's my idea:
Let me know if I forgot something, |
Beta Was this translation helpful? Give feedback.
-
I improved the _dnd keyword. The syntax is the same, groups are auto-detected. When you re-order rows in a group, they will be renumbered from 1 to n within that group as it should (instead of through the whole list). I tested with one grouping level only. If your setup has more, let me know if it works. Enjoy, |
Beta Was this translation helpful? Give feedback.
-
You can test it in my new demo pages: https://ctrnd.knack.com/ktl-tutorials#dragn-drop/ No login required. Norm |
Beta Was this translation helpful? Give feedback.
-
Norm, |
Beta Was this translation helpful? Give feedback.
-
Norm I second Leigh's suggestion as it was frighteningly easy to re-order the rows on a smart phone. Very impressive performance visually. Dean |
Beta Was this translation helpful? Give feedback.
-
Hi guy, I will check into this. There are at least 3 ways to address the issue:
Disabling on mobile is not desirable, I think. I'll try anything else before doing this. Norm |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I fixed the issue by adding a delay on mobile devices before the drag starts. The library had support just for that scenario - which was awesome! So now, when you touch the screen, you must wait 500ms before dragging the row. This allows smooth scrolling without problem. Test the dev version please and let me know if it works with your device. Norm |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@cortexrd For the new _dnd= feature can you use this if you have Fields that are Grouped to provide headings in the Grid? Also can you still sort on secondary or tertiary fields if the Sort Order field is the first priority and the other sort columns are listed after?
Beta Was this translation helpful? Give feedback.
All reactions