Call parent page function while closing

2 posts, 1 answers
  1. Guorui
    Guorui avatar
    2 posts
    Member since:
    Oct 2013

    Posted 22 Oct 2013 Link to this post

    Hi all,

    I want to rebind a radgrid in the parent page when a radwindow is closed.
    This radgrid is using a Bind() method to get the data
    protected void BindGrid()
    {
          grdPersonnel.DataSource = GetPersonnelRoleParticipantList();
          grdPersonnel.DataBind();
     
    }

    in the radwindow
    function GetRadWindow() {
                var oWindow = null; if (window.radWindow)
                    oWindow = window.radWindow; else if (window.frameElement.radWindow)
                    oWindow = window.frameElement.radWindow; return oWindow;
    }
    function closeWinAndRebind() {
                GetRadWindow().BrowserWindow.CalledFn();
                GetRadWindow().close();
    }

    in the parent page
    function CalledFn() {
              document.getElementById('<%= btnSearch.ClientID %>').click();
    }
     this btnSearch button is clicked to call the Bind() method

    This does not work. How to achieve it?

    Thanks
    Guorui
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Oct 2013 Link to this post

    Hi Guorui,

    Please take a look into this demo which deals the same scenario.

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