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

Grid Column Order can not be loaded

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
madu
Top achievements
Rank 1
madu asked on 28 Dec 2010, 08:16 AM
Hi,

I am using a hierarchical rad grid and saving some grid's statuses (filter function,sort expression,page size....) according to users.
I need to save and reload the column order of grid (After drag and drop columns)
I can save column order as a pipe separated string by using column indexes in to a xml string.

But when reloading the column order it gives exception that says mismatch with viewstate.
Can anyone give me a solution to achieve this task.

Regards,
Madu

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 31 Dec 2010, 10:06 AM
Hello madu,

I am not sure how  you are trying to reload the columns order. However, what you need to do is inspect in what order the columns have been created by the grid (e.g. in the OnDataBound event of the latter) and use the SwapColumns function of the table view object to rearrange them in the order persisted in the xml string.

Hope it helps.

Best wishes,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
madu
Top achievements
Rank 1
answered on 04 Jan 2011, 06:47 AM
Thanks for the help.
I think I will be able to solve my problem

Regards,
Madu
Tags
Grid
Asked by
madu
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
madu
Top achievements
Rank 1
Share this question
or