Rad Window State Issue

6 posts, 0 answers
  1. Taran
    Taran avatar
    20 posts
    Member since:
    Jan 2009

    Posted 10 Feb 2009 Link to this post

    Hi,

    I have a requirement where I need to have a master page and a RAD menu control on the master page. Now I need a new RAD window on click of any menu item from server side irrespective of the fact whether I am clicking same menu item or any other menu item.  

     

    I am creating a new RAD window on click event of every menu item click event from server side code and able to successfully create a new RAD window when I am clicking first time on any menu item. But whenever I clicked on any other menu item or same menu item again, my previously opened RAD window get lost and new rad window appears. I think it is a state issue, seems like page is not able to maintain RAD windows on the post back.

     

    I have also tried creating RAD windows from client side java script as well. I am able to create multiple rad windows using java script on click of any of my menu item but all RAD windows created with java script are getting lost on click of browser’s refresh button and F5 button.

     

    Please let me know the best way to create multiple RAD windows from server side and client side as well along with state management. Please help me out to maintain rad windows even after post back of page where these windows exist.

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Feb 2009 Link to this post

    Hello Taran,

    Currently RadWindow does not support state management. Note that such feature is not easy to implement - it will require major changes in the client-side and server-side logic of the RadWindow control. We are planning to introduce state management in RadWindow, but this will happen in a future release - most probably in Q2 2009.


    Best wishes,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Nani
    Nani avatar
    10 posts
    Member since:
    Nov 2011

    Posted 24 Nov 2011 Link to this post

    hi,

    when i close rad window  state is available . i need to delete state also. because of if i open window again its taking more time to load.
    Example:
     in rad window contain radtreeview  with 2500 nodes . when close the rad window  state of the window is not deleted so that when i open window again its taking more time to load compare to first time to open . 
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Nov 2011 Link to this post

    Hello,

    You can set DestroyOnClose property as true. Take a look into the following documentation.
    Common Issues

    Thanks,
    Princy.
  5. Nani
    Nani avatar
    10 posts
    Member since:
    Nov 2011

    Posted 25 Nov 2011 Link to this post

    Hi ,

    In my application i am using rad window for usercreation. when i set  first user creation is open in my own window but next user (2nd,3rd....)  creation its open in defult window with defult height,skin..etc . i attched that scecon shot also. please review. 
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4526 posts

    Posted 25 Nov 2011 Link to this post

    Hello Nani,

    This is the expected behavior when you set the DestroyOnClose property to true. This is explained in the following help article: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-common.html. please note the last section.

    There are two ways to work around this:

    1) use the RadWindow's Client-side API and set the needed sizes, properties, etc each time you open it via JavaScript

    OR

    2) remove the DestroyOnClose property and instead use the OnClientClose event to change the url of the RadWindow via the setUrl() method to, for example, about:blank


    Best wishes,
    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
Back to Top