mika Posted March 24, 2017 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
Sherzod Posted March 24, 2017 Posted March 24, 2017 Hi, Do you want to drag and drop on the same grid?! Best regards. Quote
mika Posted March 24, 2017 Author Posted March 24, 2017 Yes I do. Idea is to let user reorder records by using mouse. Quote
Kachar ganyalong Posted March 24, 2017 Posted March 24, 2017 I'm waiting for this answer too, I'm gonna need it. Quote
Sherzod Posted March 24, 2017 Posted March 24, 2017 I will try to make a small test case for this... 1 Quote
Sherzod Posted March 24, 2017 Posted March 24, 2017 Can you try this testcase ?!: DragDropInSameGrid.rar 1 Quote
Kachar ganyalong Posted March 24, 2017 Posted March 24, 2017 Tested and it's works, Wow Can you try this testcase ?!: DragDropInSameGrid.png DragDropInSameGrid.rar Quote
mika Posted March 24, 2017 Author Posted March 24, 2017 Awesome. This is A-class service. Thank you so much! 1 Quote
du1000brazil Posted July 30, 2018 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
du1000brazil Posted July 30, 2018 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
AmericoKutomi Posted September 30, 2020 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
Sherzod Posted December 1, 2021 Posted December 1, 2021 1 minute ago, kalilxd11 said: Someone could provide the download link for this example, I can't download it, it's unavailable. Hello, Sorry, are you still using the trial version? Quote
Sherzod Posted December 1, 2021 Posted December 1, 2021 Please adjust your forum email address first: Quote
Sherzod Posted December 1, 2021 Posted December 1, 2021 30 minutes ago, kalilxd11 said: ... since you don't want to help me. This is not true. 31 minutes ago, kalilxd11 said: I'm just the developer Tell them to add your email address. And read about the license agreement please! Quote
Kurt Posted April 28, 2023 Posted April 28, 2023 Hi, how will i handle the database event of this? my scenario is: 1. i have a column that is a sequence/series 2. i want to reorder the sequence of the field example: seq, product_name 1, PRODUCT A 2, PRODUCT B 3, PRODUCT C when i move the product B under the PRODUCT C i want the record to be: seq, product_name 1, PRODUCT A 2, PRODUCT C 3, PRODUCT B any idea how to implement it? Quote
Kurt Posted April 28, 2023 Posted April 28, 2023 7 minutes ago, Kurt said: Hi, how will i handle the database event of this? my scenario is: 1. i have a column that is a sequence/series 2. i want to reorder the sequence of the field example: seq, product_name 1, PRODUCT A 2, PRODUCT B 3, PRODUCT C when i move the product B under the PRODUCT C i want the record to be: seq, product_name 1, PRODUCT A 2, PRODUCT C 3, PRODUCT B any idea how to implement it? nevermind... i just checked the source code of sample. its already there... thanks..... Quote
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.