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

2 posts, 0 answers
  1. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 26 Oct 2010 Link to this post

    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.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 27 Oct 2010 Link to this post

    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
Back to Top