This is a migrated thread and some comments may be shown as answers.

server side grid column reordering

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sameer
Top achievements
Rank 1
Sameer asked on 02 Mar 2009, 05:14 PM
Hi,

I have seen the demo showing client side grid column reordering. Is there a way to set column order on server side?
Demo uses MasterTableView for grids and client side functions.

I have lots of columns and it is painful to store column collection on server and add selected columns , where by most of the columns are template columns with images and hyperlinks.

I am alerady serializing user's column selection and order on DB. (Part of dynamically configurable portal homepage) 

Please suggest..

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Mar 2009, 05:27 AM
Hi Sameer,

You can reorder columns on the server side using the SwapColumn method.

CS:
 
RadGrid1.MasterTableView.SwapColumns("City","ContactName"); 

Reordering columns

Regards
Shinu






Tags
Grid
Asked by
Sameer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or