Thread information:
Thread ID: 25
Thread account name: *****************
Is impersonating: False
Stack trace: at Telerik.SharePoint.Editor.SPContentProvider.CheckPermissionsInternal(String folderPath, PathPermissions permToCheck)
at Telerik.Web.UI.RadFileExplorer.ExpandNestedFolder(String nodeValue)
at Telerik.Web.UI.RadFileExplorer.BindExplorer()
at Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

protected void gridPicker_SelectedIndexChanged(object sender, EventArgs e){ foreach (GridDataItem item in gridPicker.SelectedItems) { if (item.Selected) { if (SelectEvent != null) { PickerEventArgs args = new PickerEventArgs(); args.Title = item.Cells[1].Text; args.Id = Convert.ToInt32(item.Cells[0].Text); SelectEvent(this,args); gridPicker.DataSource = null; this.Visible = false; } } } }
GridButtonColumn bc = new GridButtonColumn();dg.MasterTableView.Columns.Add(bc);bc.HeaderText = "Add";bc.ButtonType = GridButtonColumnType.PushButton;bc.CommandName = "Add_Click";bc.Text = "Add";<telerik:AjaxSetting AjaxControlID="ProductCrossSaleGrid" EventName="ProductCrossSaleGrid_ItemCommand"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="PricingLoadingPanel" /> </UpdatedControls></telerik:AjaxSetting>
I am trying to add Telerik’s controls (like RadMaskedTextBox, RadNumericTextBox and RadDateInput controls) dynamically into a user control (under the Page_Init event) which is itself a child of another user control.
When I run the project, following exception occurred and nothing is shown in the user control.
“Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element”
However, these controls are added directly on a .aspx page without any exception and it appeared that the Telerik’s controls get registered in the Page_PreRenderComplete event of an .aspx page and since this event does not exist in a user control therefore they are throwing the above exception.
