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

Would like rad window to close, and then open another rad window also contained on original page

1 Answer 114 Views
Window
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 26 Oct 2010, 09:02 PM
I have three rad windows in a rad window manager on my main page. I'd like the user to be able to make a selection in one window, then after clicking a button to close that window I'd like the second window containe din the window manager on the main page to open.

I tried using the OnClientClose event to call the other window but it's not working:

<telerik:RadWindowManager runat="server" ID="windowManager" Modal="true">
      
     <Windows>
         <telerik:RadWindow ID="main" runat="server" Modal="true" NavigateUrl="mainUp.aspx" VisibleOnPageLoad="true" OnClientClose="openWindow()">
         </telerik:RadWindow>
         <telerik:RadWindow ID="second" runat="server" Modal="true" NavigateUrl="scope.aspx">
         </telerik:RadWindow>
         <telerik:RadWindow ID="third" runat="server" Modal="true">
         </telerik:RadWindow>
     </Windows>
 </telerik:RadWindowManager>
 and here's my javascript:
function openWindow() {
    var oWnd = radopen(null, "second");
}
When the default page opens the "main" rad window, the user can click a button which fires this and closes that window:
function CloseOnReload() {
     GetRadWindow().Close();
      
 }
That closes the window, but how can I then get the "second" rad window to open? I tried inserting "var ownd = radopen(null, 'second') in the above CLoseOnReload function but nothing happens.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Oct 2010, 12:42 PM
Hi Fred,

The OnClientClose property accepts the name of the function only, not a caller for that function, i.e.
OnClientClose="openWindow"

If you change that property's value, all should work as expected. For convenience I prepared a small sample based to your code - please find it attached.


Regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
fred williams
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or