Hi,
I just upgraded the infragistics dlls from 16.1 to 18.1 and started getting below error:
Sys.WebForms.PageRequestManagerServerErrorException: Infragistics.Web.UI.GridControls.ColumnResizeSettings ViewState is corrupted.
If I disable viewstate for particular page then it works fine. Is there any common solution without disabling ViewState?
Thanks,
Gaurav
Gaurav,
Thank you for the additional information. I have read through this and it isn't enough to determine what may be happening or even how to go about setting up a sample to attempt to reproduce the issue. For example, it isn't clear if all three grids are created in markup or what events are used for the various actions. Please provide a sample that demonstrates the approach you are using that we can reference while looking into this.
Let me know if you have any questions with this matter.
Hello Gaurav and Anto, the explanation helped me to realize that the issue may come from the ViewState functionality of the WebDataGrid, although I would need a working sample in order to debug it for more deep investigation. This could be related to some code change or enhancement updates in the past 4 releases till 18.1.
Hi Alan,
I think this can help you in understanding the scenario's
1) we have Created a "ig:WebDataGrid" with EnableDataViewState="true", EnableViewState="true" this grid has check box on every row to select the row dataa) once row is checked and on click of a button(ADD From 1st Grid to 2nd Grid) we are displaying the selected row in the second grid which is mentioned below,here we are storing the id/data of the row in viewstateexample : columns name -> id, first name, last name data unique id, Anto , Thomson date unique id, Gaurav, Ladani
2) we have Created another WebDataGrid with EnableDataViewState="true", EnableViewState="true", EnableAjaxViewState="true the selected row in the above grid is displayed here.
3) we have created "Add window" example : this window contains to add data i.e., first name, and last nameand buttons like clear/Reset - to clear all fields (to reset textbox to empty string, drop down to first index, datetime field to date.now) cancel - "Add window" panel is hidden and displays the 1st grid and second grid. save - to save data to DB, and hide the "Add window" panel by displaying newly added data in the 1st grid.
Note both the grids are in asp panel
Scenario's 1)
a --> without selecting any data in first grid, tried to Add data in first grid, by going to Add Window --> clicked "cancel" b --> displays only first grid, since we have not added any data from 1st to 2nd grid result : we don't have any issue
2)
a --> selected first data row i.e., Anto thomson now we are storing id in view state and displayed in 2nd grid b --> Now tried to Add data in first grid, by going to Add Window --> clicked "cancel" Expected result : c --> displays both first and second gird data since we have added data to 2nd grid even going to "add window"Actual result : we are getting view state exception. (Sys.WebForms.PageRequestManagerServerErrorException: Infragistics.Web.UI.GridControls.ColumnResizeSettings ViewState is corrupted.) Note : we are facing this issue only after upgrading from 16.1 to 18.1 dlls
It isn't expected that upgrading would cause view state to be corrupted. To look into this we need to be able to reproduce the issue locally. Please provide us with a sample that demonstrates the issue. If you aren't able to create a sample that demonstrates the issue, please provide at least the markup for the grid and any logic in the code behind that sets properties on the grid so that we can understand what is being done during the page life cycle.