Parent page losing state

3 posts, 0 answers
  1. Tony Upchurch
    Tony Upchurch avatar
    7 posts
    Member since:
    Jun 2012

    Posted 20 Jan 2012 Link to this post

    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. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4529 posts

    Posted 23 Jan 2012 Link to this post

    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
  3. Tony Upchurch
    Tony Upchurch avatar
    7 posts
    Member since:
    Jun 2012

    Posted 23 Jan 2012 Link to this post

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