Asp.net Radgrid窗口关闭时,重新绑定Radgrid不会刷新

Asp.net Radgrid窗口关闭时,重新绑定Radgrid不会刷新,asp.net,telerik,master-pages,radgrid,radwindow,Asp.net,Telerik,Master Pages,Radgrid,Radwindow,我正试图重新绑定我的网格一旦一个窗口已通过母版页关闭。我的网格位于aspx页面的用户控件中。在母版页中,我有: function CancelEdit() { GetRadWindow().Close(); } function CloseAndRebind() { GetRadWindow().BrowserWindow.refreshGrid(); // Call the function in parent

我正试图重新绑定我的网格一旦一个窗口已通过母版页关闭。我的网格位于aspx页面的用户控件中。在母版页中,我有:

 function CancelEdit() {
            GetRadWindow().Close();
        }

        function CloseAndRebind() {
            GetRadWindow().BrowserWindow.refreshGrid(); // Call the function in parent page 
            GetRadWindow().close(); // Close the window 
        }

        function refreshGrid() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
        }
我可以看到我的数据源在更改,但网格没有得到更新。有什么建议吗

编辑::

The structure is something like this:

I have master page which has the RadAjaxManager.
There is a main page which has a user control
Another user control inside above user control which has the RadGrid
Then there is an aspx page that opens as radwindow

使用客户端API重新绑定网格,应该是正确的方法:

在您的子页面中:

    function refreshGrid() {
        $find("<%= YourGrid.ClientID %>").get_masterTableView().rebind();
    }

将用户控件的refreshgrid更改为此,如果达到javascript,仍然不刷新,然后尝试使用RadAjaxManager刷新控件。我可以看到母版页上的refreshgrid()被调用,但用户控件上没有。请参见编辑后的答案,您不需要父页中的
refreshgrid
函数,只需要子页中的函数,然后可以从
GetRadWindow()
函数访问该窗口。
The structure is something like this:

I have master page which has the RadAjaxManager.
There is a main page which has a user control
Another user control inside above user control which has the RadGrid
Then there is an aspx page that opens as radwindow
    function refreshGrid() {
        $find("<%= YourGrid.ClientID %>").get_masterTableView().rebind();
    }
    function CloseAndRebind() {
        GetRadWindow().get_contentFrame().contentWindow.refreshGrid(); // Call the function in parent page 
        GetRadWindow().close(); // Close the window 
    }