I was looking for a way to allow my users to customize their interface, and to choose the columns order of some grids.
I choose a client side reordering as I don't want the data to be reloaded (too long) and the ongoing modification lost (GridEditMode.Batch).
First issue: in my "RadAjaxManager1_AjaxRequest" (server side), if I look the OrderIndex of the columns of my grid, they have their original values. Is this normal ?
I could decide to save the profil with a custom button "Save Column Order" (I tried and the OrderIndex are the correct / changed ones) but I want to avoid adding another button to my interface.
sourceIndex = eventArgs.get_gridSourceColumn().get_element().cellIndex;
destinationIndex = eventArgs.get_gridTargetColumn().get_element().cellIndex;
Then I make the change myself server side and save it to the database.
It works well with GridClientSettings.GridColumnsReorderMethod.Swap.
Example: If I move the 4th columns to position 1.
And my AjaxRequest is called only 1 time with the following parameters (source, destination):
Any suggestions ?