How to wait for RadWindow to close in javascript

1 Answer 53 Views
Window
ryan
Top achievements
Rank 1
ryan asked on 17 May 2022, 09:46 PM

I have some javascript which do some calculation then open a RadWindow to get some input , after the RadWindow is closed, it will continue the
execution.  I know how to use RadWindow's OnClientClosed event.   But how can I do it in one javascript function?

aspx:

<telerik:RadWindow ID="rwdPopup" VisibleOnPageLoad="false" Behaviors="Close"
                ReloadOnShow="False" Width="900" Height="575" VisibleStatusbar="false" Modal="true"
                 runat="server">
 </telerik:RadWindow>

 

 <script type="text/javascript">

function  func1() {

   //do some calculation

var wnd = radopen("Somepage.aspx", "rwdPopup");

   //wait for RadWindow close and get the return value from rwdPopup.  i.e. var result = args.get_argument();

// do more calculation

}

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 18 May 2022, 05:17 PM

Hi Ross,

You can see how to achieve the described scenario in the following help article:

https://docs.telerik.com/devtools/aspnet-ajax/controls/window/how-to/show-radalert-that-blocks-the-entire-page

Please, examine it and let me know if I can assist you any further on this matter.

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Window
Asked by
ryan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or