Viewstate error when updating updatepanel from OnClientClose event of Radwindow

3 posts, 0 answers
  1. Guy
    Guy avatar
    49 posts
    Member since:
    Oct 2007

    Posted 25 Apr 2008 Link to this post

    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. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 29 Apr 2008 Link to this post

    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
  3. Guy
    Guy avatar
    49 posts
    Member since:
    Oct 2007

    Posted 29 Apr 2008 Link to this post

    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!
Back to Top