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

changing a value of a combobox after exporting fires a viewstate error

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
regis
Top achievements
Rank 1
regis asked on 05 Jan 2012, 08:07 PM
Hi Everyone,

When I select a different value in a combobox after exporting a grid (export process is a custom fonction using RadGrid1.MasterTableView.ExportToCSV();) We end up with this error: "
Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request."

Is it normal? Is there a way to refresh/rebind the gris after creating the export?

Thank you

Regis

1 Answer, 1 is accepted

Sort by
0
regis
Top achievements
Rank 1
answered on 05 Jan 2012, 10:26 PM
Hi Again,

I was able to find why I got this error message. A javascript code was hiding a control . so the viewstate was not correct when reloading.

Thank you

Regis
Tags
Grid
Asked by
regis
Top achievements
Rank 1
Answers by
regis
Top achievements
Rank 1
Share this question
or