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
in the radwindow
in the parent page
this btnSearch button is clicked to call the Bind() method
This does not work. How to achieve it?
Thanks
Guorui
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 does not work. How to achieve it?
Thanks
Guorui