closed the radwindow and refresh parent

2 posts, 0 answers
  1. Mohamad Javad
    Mohamad Javad avatar
    39 posts
    Member since:
    Jul 2014

    Posted 28 Jul 2014 Link to this post

    hi
    i need:
    when closed the radwindow, parent Page is Be refreshed.
    thanks
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 28 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top