Hello...
I have a Radgrid inside user control & I want to find it from aspx page server side. I have written the following code for it but shows me error $find()...is null....
Can anyone please help me asap?
Usercontrol.ascx
function RadGridRow() {
return $find("<%=RGOrders.ClientID %>").get_masterTableView().get_dataItems();
}
Page.aspx
function abc() {
var RgOrders = RadGridRow();
}
Please note that I am calling the function abc() from server-side (code - behind). From client side, this function is working fine
Page.aspx.cs
string strscript = "abc();";
ScriptManager.RegisterStartupScript(pnl, pnl.GetType(), "ShowMessage" + DateTime.Now.ToLongTimeString(), strScript, true);
I have a Radgrid inside user control & I want to find it from aspx page server side. I have written the following code for it but shows me error $find()...is null....
Can anyone please help me asap?
Usercontrol.ascx
function RadGridRow() {
return $find("<%=RGOrders.ClientID %>").get_masterTableView().get_dataItems();
}
Page.aspx
function abc() {
var RgOrders = RadGridRow();
}
Please note that I am calling the function abc() from server-side (code - behind). From client side, this function is working fine
Page.aspx.cs
string strscript = "abc();";
ScriptManager.RegisterStartupScript(pnl, pnl.GetType(), "ShowMessage" + DateTime.Now.ToLongTimeString(), strScript, true);