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

RadWindow attributes

5 Answers 95 Views
Window
This is a migrated thread and some comments may be shown as answers.
Webster Velasco
Top achievements
Rank 2
Webster Velasco asked on 02 Dec 2009, 02:45 PM
hi everyone,

i just noticed 1 thing bout this control.
after my radwindow poped up once the next pop of same radwindow it loose the attributes which i defined..

any kind of help would be appreciated..

thanks in advance

regards
webster

5 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 02 Dec 2009, 04:00 PM
Hi Webster,

I suppose that you use the radopen() or oWinowManager.open() method in order to open a new RadWindow. If this is the case, the reason for the unexpected behavior can be that you set the DestroyOnClose="true" property of the RadWindow control. In this case every time you open a new window, the properties from RadWinowManager are taken and applied to the newly opened RadWindow.
If the above suggestion did not help, could you please provide little bit more information about your setup. Once I have a better view over your configuration I will do my best to provide a solution as soon as possible.

I hope this helps.

Greetings,
Fiko
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.
0
Fiko
Telerik team
answered on 02 Dec 2009, 04:03 PM
Hi Webster,

I suppose that you use the radopen() or oWinowManager.open() method in order to open a new RadWindow. If this is the case, the reason for the unexpected behavior can be that you set the DestroyOnClose="true" property of the RadWindow control. In this case every time you open a new window, the properties from RadWinowManager are taken and applied to the newly opened RadWindow.
If the above suggestion did not help, could you please provide little bit more information about your setup. Once I have a better view over your configuration I will do my best to provide a solution as soon as possible.

I hope this helps.

Greetings,
Fiko
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.
0
Webster Velasco
Top achievements
Rank 2
answered on 03 Dec 2009, 09:20 AM
yes i use those 2 method to open new rad window.. i try to set that property to false.. thanks
0
Garry
Top achievements
Rank 2
Veteran
answered on 03 Apr 2012, 12:11 PM
I tried this approach but it does not work.
I can therefore confirm that the 2012.1 release does not preserve attributes in RadListBox items when the page is opened in RadWindow.
Can you please suggest a workaround or a time when this will be fixed?
0
Marin Bratanov
Telerik team
answered on 04 Apr 2012, 01:11 PM
Hello Garry,

The page you open in the RadWIndow is disposed in three cases when reopening a RadWindow which can cause you to lose your dynamically created items:
1) the entire page that holds the RadWindow is disposed (a full postback) or at least this RadWindow is disposed (an AJAX request that updates it)
2) the RadWindow is closed on the client and DestroyOnClose is set to true
3) the RadWindow is closed on the client and has the ReloadOnShow set to true, which appends a random querystring to the iframe's src when it is reopened, which causes the browser to perform a new request for the page, thus ignoring viewstate from previous postbacks inside the content page. If you create your items programmatically they will not be persisted across different requests to the page. This behavior would be the same if you load your content page directly in the browser and fully reload it (add some querystring to its address or a full browser reload, usually ctrl+f5).

A fourth case is some custom code that reloads the content of the RadWindow (e.g. a call to its reload() method, a change in its URL, e.g. via the setUrl() or radopen() methods), so you may also want to check for this.


All the best,
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
Webster Velasco
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Webster Velasco
Top achievements
Rank 2
Garry
Top achievements
Rank 2
Veteran
Marin Bratanov
Telerik team
Share this question
or