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();

    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() {

    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?

  2. Answer
    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.

Back to Top