I have an ASPX page. on this page i have a userControl, on this User Control i have another User Control. the Purpose of the last User Control is to allow selection of a tree view, however since we have thousands of what would be nodes, we have a grid and a RadTab, the RadTab options are GridView and TreeView, the control defaults to GridView listing the thousands of possible selections, there is also a textbox which searchs the grid, whenever the grid has less then 200 items, it defaults to tree view and the items are displayed in a tree view.
now, this control is on several pages and works great. however, now since i have this control, on a User Control thats on an ASPX page, i get errors.
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
whenever i take out the ajax of the control, it works fine. however, when trying to use the Ajax, that error occurs whenever a search is performed on the grid (the ajax is being called)
the RadAjaxManager and RadScriptManager and RadLoadingPanel are all on the ASPX page. and im trying to reference them from the user Control.
i used the following lines of code.
ScriptManager1 = (RadScriptManager)this.Parent.Page.FindControl("ScriptManager1");
RadAjaxLoadingPanel1 = (RadAjaxLoadingPanel)this.Parent.Page.FindControl("RadAjaxLoadingPanel1");
RadAjaxManager.GetCurrent(this.Parent.Page).AjaxSettings.AddAjaxSetting(LocationSetToolBar, LocationGrid, RadAjaxLoadingPanel1);
i also tried this.parent.parent.page, just to make sure i was hitting the correct length.
any help at all would be appreciated. thx.
now, this control is on several pages and works great. however, now since i have this control, on a User Control thats on an ASPX page, i get errors.
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
whenever i take out the ajax of the control, it works fine. however, when trying to use the Ajax, that error occurs whenever a search is performed on the grid (the ajax is being called)
the RadAjaxManager and RadScriptManager and RadLoadingPanel are all on the ASPX page. and im trying to reference them from the user Control.
i used the following lines of code.
ScriptManager1 = (RadScriptManager)this.Parent.Page.FindControl("ScriptManager1");
RadAjaxLoadingPanel1 = (RadAjaxLoadingPanel)this.Parent.Page.FindControl("RadAjaxLoadingPanel1");
RadAjaxManager.GetCurrent(this.Parent.Page).AjaxSettings.AddAjaxSetting(LocationSetToolBar, LocationGrid, RadAjaxLoadingPanel1);
i also tried this.parent.parent.page, just to make sure i was hitting the correct length.
any help at all would be appreciated. thx.