Is there a way to allow the user to move rows just like they move columns?
It can be done in the UltraWebGrid but how about the WebDataGrid?
I need to create a Netflix like gride where they can drag and drop rows to re-order them within the same grid.
I want to rearrange/move column order in WebDataGrid manually. I am using AutoGenerateColumns="true" and Infragistics12.1
How is it possible??? Plz let me know as early as possible.
Regards Suday
Hello RBonser,
Let us know if you need further assistance.
In order to swap rows with Up and Down arrows on client side you may use JQuery
insertAfter and insertBefore functions.
But you should keep in mind that they just change the HTML elements.
For example if you handle RowSelectionChanged event and you have selected the first row (containing the second row element) you will see that the index of the currently selected row (e.CurrentSelectedRows[0].Index) is 1.
So I recommend you to use the approach suggested by David regarding the Drag & Drop framework.
http://samples.infragistics.com/2010.2/WebFeatureBrowser/contents.aspx?showCode=true&t=WebDragDrop/DragDropSorting.aspx~srcview.aspx?path=~srcview.aspx?path=WebDragDrop/DragDropSorting.src
Please refer to the below forum post. It is discussing the same topic:
http://community.infragistics.com/forums/p/25755/94452.aspx
There is sample attached :
http://community.infragistics.com/forums/p/25755/94452.aspx#247735
And video :
http://community.infragistics.com/aspnet/media/p/100304.aspx
Let us know if you need further assistance regarding this.
Hi,
This is currently not implemented in the WebDataGrid. You could use the drag drop behavior to implement this yourself however. On the drag end client event, you could then postback to the server and move the row.
regards,David Young