PDA

View Full Version : moving items up and down in a gridview in 4.0



Anthony.Hall
20 Jan 2012, 7:15 AM
I have a requirement to be able reorder the contents of a grid view. ie so the user can reshuffle the order of items. Are there any 4.0 implementations of this available. I was surprised the default examples don't appear to have this feature.

mitchellsimoens
20 Jan 2012, 8:53 AM
You need to sort the store. When the store's data items have changed in any way, even sorting or filtering, the grid should reflect this.

Anthony.Hall
20 Jan 2012, 9:14 AM
let me rephrase. I need to be able to give the user the option to change the order of items.

So lets say we have a list.

My favourite artist.

1. beatles.
2. rolling stones
3. the who

i need to let the user push item up or down this list. I was wondering if there was a plugin around or some documented technique to do this.

mitchellsimoens
20 Jan 2012, 9:18 AM
By dragging... you would need to setup soem DD classes to handle that. If you just have an up and down, then you just need to move the record up/down

Tim Siney
13 Mar 2012, 12:39 PM
I've got a similar scenario to the above that requires items in a grid to be re-ordered via drag drop. Are there any examples of this available? The gridviewdragdrop plugin doesn't appear at first glance to offer an easy way of doing this.