I receive this error while trying to drag to reorder columns in RadGrid + NeedDataSource scenario.
The grid is all built inside aspx page.
In code behind I only use NeedDataSource and ItemDataBound to show some boolean columns as formatted text instead of checboxes.
The error is:
and
The grid is all built inside aspx page.
In code behind I only use NeedDataSource and ItemDataBound to show some boolean columns as formatted text instead of checboxes.
The error is:
Server Error in '/' Application.The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace: [HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.] System.Web.UI.ControlCollection.RemoveAt(Int32 index) +12539142 Telerik.Web.UI.GridBatchEditingHelper.CreateColumnEditorsPanel() +314 Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1632 Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1116 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +95 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +222 Telerik.Web.UI.GridTableView.PerformSelect() +244 Telerik.Web.UI.GridTableView.DataBind() +441 Telerik.Web.UI.GridTableView.OnPreRender(EventArgs e) +53 System.Web.UI.Control.PreRenderRecursiveInternal() +113 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297and
Stack Trace:System.Web.HttpUnhandledException (0x80004005): Generata eccezione di tipo 'System.Web.HttpUnhandledException'. ---> System.Web.HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. in System.Web.UI.ControlCollection.RemoveAt(Int32 index) in Telerik.Web.UI.GridBatchEditingHelper.CreateColumnEditorsPanel() in Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) in Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) in System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) in System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) in Telerik.Web.UI.GridTableView.PerformSelect() in Telerik.Web.UI.GridTableView.DataBind() in Telerik.Web.UI.GridTableView.OnPreRender(EventArgs e) in System.Web.UI.Control.PreRenderRecursiveInternal() in System.Web.UI.Control.PreRenderRecursiveInternal() in System.Web.UI.Control.PreRenderRecursiveInternal() in System.Web.UI.Control.PreRenderRecursiveInternal() in System.Web.UI.Control.PreRenderRecursiveInternal() in System.Web.UI.Control.PreRenderRecursiveInternal() in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) in System.Web.UI.Page.HandleError(Exception e) in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) in System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) in System.Web.UI.Page.ProcessRequest() in System.Web.UI.Page.ProcessRequest(HttpContext context) in ASP.admin_users_users_aspx.ProcessRequest(HttpContext context) in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() in System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Exception Data (0 items):Base Exception Data (0 items):