Refresh parent popup

2 posts, 0 answers
  1. sandy
    sandy avatar
    23 posts
    Member since:
    Aug 2010

    Posted 02 Jan 2013 Link to this post

    Hi, i have a rad scheduler.
    when am clicking add new recurrence am opening new popup window for adding records.
    so in that i have a button for selecting members(popup page). so when am clicking this button am opening radwindow for selecting members in checked listbox.
    so here am saving  values in session. and on button click am closing this select members popup and i want to refresh the parent popup that is add recurrent event popup and fillup checklistbox with session am getting values in session. but the parent pop is not refreshing

    this is my select members popup(child popup)
    function CloseAndRebind(args) {
            GetRadWindow().BrowserWindow.refreshGrid(args); // Call the function in parent page
            GetRadWindow().close(); // Close the window
    function getRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;

    function closeWindow() {

    this is my parent popup(addrecurrent popup)
    <script type="text/javascript">
            function openWin() {
                var oWnd = radopen("SelectMembers.aspx", "RadWindow1");
                oWnd.setSize(818, 565);
                oWnd.moveTo("100px", "60px");
  2. Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 02 Jan 2013 Link to this post

    Hello Sandy,

    The following demo shows a very similar scenario: The point is that some code must be added that will initiate the request. In the demo it is the refreshGrid() function in the main page that is called from within the RadWindow. You can also use the OnClientClose event of the control to always execute some code after the popup is closed. This help article may be useful in case you are using the ContentTemplate, so you can properly use AJAX with it. In case you load entire pages in the RadWindows you may need the approach from this one to call a function in the appropriate page in order to initiate the postback there.

    Kind regards,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top