I'm in IE8 and I'm opening a modal dialogue from codebehind, afterwards I'm running a function.
When I have this
The alert pops up as soon as I close the modal dialogue. Perfect so far. I have a Radgrid on the parent page:
And when I attempt to do this:
-I get the Microsoft JScript runtime error: Object doesn't support this property or method in reference when I'm calling get_masterTableView from the RadGrid object.
When I try this:
-I get Microsoft JScript runtime error: 'null' is null or not an object in reference to the RadGrid object.
The page uses RadAJAXManager, and I've tried turning it off and on. I've also looked at the dynamic page and found the div id that the script was parsed to look for as plain as day.
I merely want to find the RadGrid client object so I can call a rebind.
String ScriptInput = String.Format("window.showModalDialog(\"" + NavigateUrl + "\", \"\", \"dialogHeight:500px;dialogWidth:845px;resizable:yes;status:no;unadorned:no;edge:raised\"); RefreshGrid()");
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "newWindow", ScriptInput, true);
When I have this
function RefreshGrid(){
alert("The Grid Will Refresh At This Point");
}
The alert pops up as soon as I close the modal dialogue. Perfect so far. I have a Radgrid on the parent page:
<telerik:RadGrid ID="rgSupplementalAllocation"
And when I attempt to do this:
function RefreshGrid() {
var RadGrid = $get("<%= rgSupplementalAllocation.ClientID %>");
var MasterTableView = RadGrid.get_masterTableView();
MasterTableView.rebind();
}
-I get the Microsoft JScript runtime error: Object doesn't support this property or method in reference when I'm calling get_masterTableView from the RadGrid object.
When I try this:
function RefreshGrid() {
var RadGrid = $find("<%= rgSupplementalAllocation.ClientID %>");
var MasterTableView = RadGrid.get_masterTableView();
MasterTableView.rebind();
}
-I get Microsoft JScript runtime error: 'null' is null or not an object in reference to the RadGrid object.
The page uses RadAJAXManager, and I've tried turning it off and on. I've also looked at the dynamic page and found the div id that the script was parsed to look for as plain as day.
I merely want to find the RadGrid client object so I can call a rebind.