This is a migrated thread and some comments may be shown as answers.
Parent page losing state
2 Answers 23 Views
This is a migrated thread and some comments may be shown as answers.
Tony Upchurch
Top achievements
Rank 1
Tony Upchurch asked on 20 Jan 2012, 07:11 PM
I have a RadWindow that pops up a search using a RadGrid.  Sometimes the parent window will lose its state or session after clicking a series of controls.  It is a very odd problem but seems to occur everywhere I use a RadWindow in this fashion.  If I open the RadWindow, click search twice and then page 6 times then the parent window loses state or session (not sure exactly).  It's very strange, because why does it take paging the RadGrid 6 times to cause the problem and not 3 or 4?  So, at this point, I am looking for any ideas or even guesses as to what may be causing this problem.  I don't want to post the code because there is too much to reasonably ask you to look at, but please let me know if you have any thoughts that might be useful.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Jan 2012, 04:36 PM
Hi Tony,

The RadWindow does not influence the Session or ViewState (well, it stores its server-side properties in the viewstate, but this is a minimal amount of data). What may be happening is that your ViewState gets too big or there is some other error thrown. I can suggest you examine this article on optimising it for the RadGrid.

Also, since the RadWindow is essentially an iframe it behaves like one. And there are some issues under IE with iframes and cookies (see here and here for example, or try a generic google search on the matter).

I hope you will be able to resolve this issue. When this happens we would be glad if you share the origin and fix for this with the community in case somebody else stumbles upon a similar problem.


Kind regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Tony Upchurch
Top achievements
Rank 1
answered on 23 Jan 2012, 05:52 PM
We added to Web.config and has seemed to help.  I am totally certain the problem is gone.

<system.web>
<sessionPageState historySize="30" />
< /
system.web>
Asked by
Tony Upchurch
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Tony Upchurch
Top achievements
Rank 1
Share this question
or