window close view state error

4 posts, 0 answers
  1. ibrahim
    ibrahim avatar
    74 posts
    Member since:
    Feb 2009

    Posted 02 Jun 2009 Link to this post

    i have this issue  that i just got what is causing in and it is the rad window..and what is annoting is that it doesnt happen evey time ..i have a rad grid with 1 column as command column when clicked a radwindow will apear using this code
    Dim window1 As New Telerik.Web.UI.RadWindow 
                window1.Modal = True 
                window1.Title = "Assign Team" 
                window1.VisibleTitlebar = True 
     
                window1.Width = 500 
                window1.Height = 500 
                window1.DestroyOnClose = True 
                window1.NavigateUrl = "~/assign_team_mod.aspx" 
                windowmanager.Windows.Add(window1) 
              
                window1.VisibleOnPageLoad = True 

    when i just close the window i press edit or do anything in my page that causes a postback opperation i get the following error!!
    sys.webforms.pagerequestmanagerservererrorexception: 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 the controls dynamically, the controls added during the post-back must match the type and position of the controls added during the initial reques 

    i posted this problem in the grid forum but i just realised that the cause was closing the window so..any idea of what am i doing wrong?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Jun 2009 Link to this post

    Hello Ibrahim,

    I suggest to check the following forum thread - I believe it could be of help:
    http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-and-rebinding-on-closing-radwindow.aspx

    I would also recommend to open the RadWindow on the client as shown in the following demo:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

    If this doesn't help, please open a support ticket and send us a small sample project where this issue could be reproduced so we could check it.


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. ibrahim
    ibrahim avatar
    74 posts
    Member since:
    Feb 2009

    Posted 02 Jun 2009 Link to this post

    thanks georgy for your quick response...well i cannot open from client side because i am reading data from the grid and passing it to the window using session state....the part about opening the window is the last lines of code in my method!! and in the first forum he is getting a deferant error than me...can u give me other causes for this error because i have no ideas what so ever
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Jun 2009 Link to this post

    Hello Ibrahim,

    In such case, I strongly recommend to send us a sample project where this issue could be reproduced. We will check it right away.


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top