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

Viewstate error when updating updatepanel from OnClientClose event of Radwindow

2 Answers 125 Views
Window
This is a migrated thread and some comments may be shown as answers.
Guy
Top achievements
Rank 1
Guy asked on 25 Apr 2008, 03:39 PM
I have a radWindowManager on my page, it is used to allow edits and additions of items in my gridview on the main page.

using the OnClientClose property of the RadWindow i am calling __doPostBack('UpdatePanel1',''); to refresh the updatepanel which contains my gridview.

i get the following 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

it works fine if i dont use a radwindowmanager and just use a basic popup window.


2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 29 Apr 2008, 11:26 AM
Hi Guy,

Generally speaking this error can occur if you are changing the controls collection on the server. At this point we cannot tell what the exact reason for the problem is, but we believe that the problem is not directly related to the RadWindow control.

To be able to help, we will need a small sample project where the problem can be reproduced - we will check it and get back to you right away. Just open a new support ticket and send the project to us.




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Guy
Top achievements
Rank 1
answered on 29 Apr 2008, 12:17 PM
Hi Georgi,

i wasnt able to reproduce the error on a test project, so the error must have been coming from some other control.  i understand why it blows but cant understand what caused it.

i did a test project, and raised an asyncpostback when the radwindow closes that causes my gridview to refresh and it worked ok!


so now i just have to figure out why the same code doesnt work in my live site!
Tags
Window
Asked by
Guy
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Guy
Top achievements
Rank 1
Share this question
or