Q: When dragging rows up or down, how do we capture the new index?
With the new drag & drop features of the 2009.Q2 release, is there a simple example of dragging a RadGrid row up or down? All the online demos drag *between* grids, but even the online demos do not move the row up or down.
I can do all the database stuff, I just need to know what event to hook into when dropping on the same grid, and how to get the new grid index of the dropped row.
Logically it would be something like:
grid1_rowdropped....
if startingGrid = droppedGrid then
get index of new location in grid1 that the row was dropped into
do database stuff here (I can do this once I get the index passed back)
I just need a little nudge in the right direction.
(If anyone is building a simple sample from scratch, a small ToDo list sample would probably be usefull for the community.)
Thank you,
Mike
With the new drag & drop features of the 2009.Q2 release, is there a simple example of dragging a RadGrid row up or down? All the online demos drag *between* grids, but even the online demos do not move the row up or down.
I can do all the database stuff, I just need to know what event to hook into when dropping on the same grid, and how to get the new grid index of the dropped row.
Logically it would be something like:
grid1_rowdropped....
if startingGrid = droppedGrid then
get index of new location in grid1 that the row was dropped into
do database stuff here (I can do this once I get the index passed back)
I just need a little nudge in the right direction.
(If anyone is building a simple sample from scratch, a small ToDo list sample would probably be usefull for the community.)
Thank you,
Mike