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

Destroy Rad window

3 Answers 422 Views
Window
This is a migrated thread and some comments may be shown as answers.
A K
Top achievements
Rank 1
A K asked on 03 Nov 2010, 12:27 PM
I  am opening  a page in rad window. ( Radwindow manager is on the maser page described as follow). I have cacel button on the page.
Which has code according to your example.
When I cancel out it closes the window but when I open window second time and click on cancel it closes current window and now it's showing the old window again. For this example I am using radWINModalPostLogin windwow.

<

 

telerik:RadWindowManager ID="radWindowManager" Style="z-index: 8001;"

 

 

runat="server" Skin="Vista" OnClientClose="OnClientClose" EnableViewState="false" ShowContentDuringLoad="false" >

 

 

<Windows>

 

 

<telerik:RadWindow ID="radWINModalPostLogin" runat="server" ReloadOnShow="True" DestroyOnClose="true" Behaviors="None"

 

 

Left="" VisibleTitlebar="False" VisibleOnPageLoad="false" Style="display: none;" Top="" Modal="True" KeepInScreenBounds="True" >

 

 

</telerik:RadWindow>

 

 

<telerik:RadWindow ID="radWINDialogPostLogin" VisibleStatusbar="false" runat="server" VisibleOnPageLoad="false"

 

 

Left="" VisibleTitlebar="True" Style="display: none;" Top="" Modal="False" Behaviors="Close" >

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Nov 2010, 02:00 PM
Hello,

I am not sure about the code that you tried to open the window. I assume that you are setting the VisibleOnPageLoad to True from code behind to show the window. And because of VisibleOnPageLoad set as True, the window re-opens in next postback.

If that the case, then you can try opening window using client code. The following help documentation describes more on how to open window from client code.
Opening Windows

And invoke the close() method of RadWindow client object to close the window.


Could you paste the code that you tried if your approach is different than this?


-Shinu.
0
Alan
Top achievements
Rank 1
answered on 05 Nov 2010, 07:14 PM
I think you have have encountered the same issue I did. You may need to add: ReloadOnShow="true"
to the RadWindowManager for your window.
0
Anumeha
Top achievements
Rank 1
answered on 04 Jan 2011, 08:14 PM
I have a ReloadOnShow="true" specified but I am still having issues when opening the radwindow for the second time.
Any help?
Tags
Window
Asked by
A K
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Alan
Top achievements
Rank 1
Anumeha
Top achievements
Rank 1
Share this question
or