Jump to content

UniDBGrid reordering rows using drag&drop


mika

Recommended Posts

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?

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...
  • 1 year later...
  • 1 year later...

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?

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...