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

Rad Window State Issue

5 Answers 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
Taran
Top achievements
Rank 1
Taran asked on 10 Feb 2009, 06:46 AM

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.

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Feb 2009, 02:31 PM
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.
0
Nani
Top achievements
Rank 2
answered on 24 Nov 2011, 07:07 AM
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 . 
0
Princy
Top achievements
Rank 2
answered on 24 Nov 2011, 08:47 AM
Hello,

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

Thanks,
Princy.
0
Nani
Top achievements
Rank 2
answered on 25 Nov 2011, 06:44 AM
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. 
0
Marin Bratanov
Telerik team
answered on 25 Nov 2011, 04:48 PM
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
Tags
Window
Asked by
Taran
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Nani
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Marin Bratanov
Telerik team
Share this question
or