Strange behavior with RadWindowManager

4 posts, 0 answers
  1. Natraj T
    Natraj T avatar
    12 posts
    Member since:
    Jul 2009

    Posted 06 Nov 2009 Link to this post

    Hi,

         I am using RadWindowManager to open radwindows and I'm opening the window from clientside (i.e from javascript). On test, I have noticed that the rad window loads in its first call status and not get refreshing on its consecutive calls with new values when i pass the same querstring. The window should reload (actually the page load event of radwindow itself not called in the consecutive calls) so that i can show the values updated in the previous load.

    To achieve this I used ReloadOnShow="true", its working but the page is get loaded 2 times, which takes double time to load the radwindow. So I tried to use ReloadOnShow="false" and PreserveClientState="false". Now the expected behavior is working. But if I refresh the page the page load is not get loaded again (ie, radwindow get loaded in its previous state). What I need to load the page with current state without loading it double time. I don’t like to use some random numbers in querystring as a parameter. Is there any better solution than this?

    Please help me

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 06 Nov 2009 Link to this post

    Hi Natraj,

    Setting ShowContentDuringLoad=false and ReloadOnShow=true should help in your scenario. If it doesn't, please open a support ticket and send us a small sample project where this issue could be reproduced. We will check it and do our best to help.


    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Natraj T
    Natraj T avatar
    12 posts
    Member since:
    Jul 2009

    Posted 06 Nov 2009 Link to this post

    Hi

    Thanks for the reply.

    The server is called twice if I use ReloadOnShow property which doubles my page load time. I want get rid of that behavior. Tomorrow I will send you the sample project, now I feel it may help you to analyze the problem. Please follow the below link which you guys discussed already,

    http://www.telerik.com/community/forums/aspnet/window/reloadonshow-true-makes-2-call-to-web-server.aspx

    Shortly,

    My page needs to be loaded freshly on every call(with same parameter also) but should not load twice.
    I don’t like to append some random number as query string to the url (which is an idea discussed in some threads).
    Preserveclientstate=false is working fine for the above scenarios, but failing when a page is refreshed (right click the browser, select refresh or click refresh button of browser). To reproduce this, add rad window manager, rad windows in your page and set Preserveclientstate=false. Create one more page which is going to be called from the first page. Put break-point on page_load event on page2; call this page from the first page (radopen at clientside, no query strings). On each call the page load is hitting which is expected. But refresh the first page (right click the browser, select refresh or click refresh button of browser). Now open the page, the page_load event of page2 is not hitting but page is loaded.

        For the same above scenario, if you set ReloadonShow=true the page_load event of page2 is hitting on all calls but 2 times which the second hit is unnecessary.

    Hope you understand my problem. If not I will get back to you with sample by tomorrow.


    Thanks
    Natraj

  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 09 Nov 2009 Link to this post

    Hi Natraj,

    If you are using a recent version of RadWindow for ASP.NET AJAX, you should not experience this problem with the setup that I suggested in my previous reply. If you are indeed using such version, but the problem persists, please send me a sample project and I will check it.


    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top