mika 15 Posted March 24, 2017 Share Posted March 24, 2017 I know drag&drop using two UniDBGrids are discussed and there are even demo about it but how about dragging and dropping inside one grid? I have data in which rows are ordered by indexed row number and I'd like to add feature where user can drag rows to different positions and when user does that, row numbers are updated in the background accordingly. What is the easiest and more importantly, correct way to achieve this? Quote Link to post Share on other sites
Sherzod 1183 Posted March 24, 2017 Share Posted March 24, 2017 Hi, Do you want to drag and drop on the same grid?! Best regards. Quote Link to post Share on other sites
mika 15 Posted March 24, 2017 Author Share Posted March 24, 2017 Yes I do. Idea is to let user reorder records by using mouse. Quote Link to post Share on other sites
Kachar ganyalong 2 Posted March 24, 2017 Share Posted March 24, 2017 I'm waiting for this answer too, I'm gonna need it. Quote Link to post Share on other sites
Sherzod 1183 Posted March 24, 2017 Share Posted March 24, 2017 I will try to make a small test case for this... 1 Quote Link to post Share on other sites
Sherzod 1183 Posted March 24, 2017 Share Posted March 24, 2017 Can you try this testcase ?!: DragDropInSameGrid.rar 1 Quote Link to post Share on other sites
Kachar ganyalong 2 Posted March 24, 2017 Share Posted March 24, 2017 Tested and it's works, Wow Can you try this testcase ?!: DragDropInSameGrid.png DragDropInSameGrid.rar Quote Link to post Share on other sites
mika 15 Posted March 24, 2017 Author Share Posted March 24, 2017 Awesome. This is A-class service. Thank you so much! 1 Quote Link to post Share on other sites
Sherzod 1183 Posted March 24, 2017 Share Posted March 24, 2017 Thank you! Quote Link to post Share on other sites
du1000brazil 0 Posted July 30, 2018 Share Posted July 30, 2018 Hello I made a change in the code to do with multiple lines. The problem is when we move 2 lines. Locate on the grid to stop working. Quote Link to post Share on other sites
du1000brazil 0 Posted July 30, 2018 Share Posted July 30, 2018 Hello I made a change in the code to do with multiple lines. The problem is when we move 2 lines. Locate on the grid to stop working. Você pode experimentar este testcase? DragDropInSameGrid.png DragDropInSameGrid.rar Unigui version:1.0.0.1425 Follow code in the link: DragDropInSameGrid_teste.rar Quote Link to post Share on other sites
AmericoKutomi 0 Posted September 30, 2020 Share Posted September 30, 2020 On 3/24/2017 at 6:11 AM, Sherzod said: Can you try this testcase ?!: DragDropInSameGrid.rar I had the same problem and thank you for this solution! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.