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

[Solved] Viewstate becomes corrupted after insert

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 11 May 2008, 03:36 PM
Hi,

I have a page with some inputs on the top and three grids at the bottom.  The three grids show a list of addresses, the patient responsible for the patient I am viewing, and a list of dependents for the patient I am viewing.  Each of these has a custom form that appears inside the grid when I want to add a new record.

The first grid (addresses) inserts just fine.  I have no problems after inserting.
The second and third grids seem to corrupt the viewstate after I have inserted a record.  Now, I am able to insert a new record, but after there is one item in either grid I cannot post any more to this page.  This includes clicking the "Add dependent" or other link button in my grid command template or on my page, and it also includes saving the input at the top.  The page becomes uneditable after an item is populated into either table.  Even a clean refresh of this page doesn't help.

I must be doing something wrong in the second and third grids, but I can't figure out what.  Is there ever a case where the RadGrid will cause an invalid viewstate if there is a record in it?

I can provide sample code as needed.  Thanks.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 14 May 2008, 07:46 AM
Hi Jake,

Unfortunately the provided information is not sufficient to trace the source of the issue you are facing and we have not been contacted with regards to a similar issue before. The answers to the following questions can shed some additional light on the matter:
  • Can you please check whether this happens on a particular browser?
  • Do you get any javascript errors after inserting a record in the second or the third grid?

It seems that the controls are not properly initialized after the insert operation is completed and this may cause the erratic behavior. To troubleshoot the issue further, you can use the Fiddler tool or IE developer toolbar. Furthermore, providing a live url to your site can help us further in our attempt to identify the reason for the issue and provide a fix for it.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Jake
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or