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

closed the radwindow and refresh parent

1 Answer 57 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mohamad Javad
Top achievements
Rank 1
Mohamad Javad asked on 28 Jul 2014, 10:09 AM
hi
i need:
when closed the radwindow, parent Page is Be refreshed.
thanks

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Jul 2014, 12:20 PM

Hello,

The following demo shows how you can call a function that will do the needed work: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window. This help article expands on this approach: http://www.telerik.com/help/aspnet-ajax/window-programming-calling-functions.html.

Alternatively, you can use the OnClientClose event of the RadWindow to execute the needed logic: http://demos.telerik.com/aspnet-ajax/window/examples/clientsideevents/defaultcs.aspx?product=window.

For example, you can refresh the page like this:

<telerik:RadWindow ID="RadWindow1" runat="server" OnClientClose="OnClientCloseHandler">
</telerik:RadWindow>
<script type="text/javascript">
    function OnClientCloseHandler(sender, args) {
        window.location.href = window.location.href;
    }
</script>



Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Window
Asked by
Mohamad Javad
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or