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

window close view state error

4 Answers 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
ibrahim
Top achievements
Rank 1
ibrahim asked on 02 Jun 2009, 08:19 AM
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?

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Jun 2009, 10:51 AM
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.
0
ibrahim
Top achievements
Rank 1
answered on 02 Jun 2009, 11:44 AM
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
0
Georgi Tunev
Telerik team
answered on 02 Jun 2009, 12:36 PM
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.
0
Kris
Top achievements
Rank 2
answered on 07 Apr 2020, 06:52 PM
I believe i am experiencing the same issue. However, it can not be duplicated in my dev or stage environment.
Tags
Window
Asked by
ibrahim
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
ibrahim
Top achievements
Rank 1
Kris
Top achievements
Rank 2
Share this question
or