the control collection cannot be modified during databind init load prerender or unload phases

2 posts, 0 answers
  1. Moha
    Moha avatar
    5 posts
    Member since:
    Mar 2013

    Posted 21 Aug 2013 Link to this post

    hi everyone
    i have problem with dropdowntree
    in my local site whene i have some postback in my site and change some views of multiview this error appears :
    the control collection cannot be modified during databind init load prerender or unload phases
    and this is my stack trace:
    [HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
       System.Web.UI.ControlCollection.Add(Control child) +9600379
       Telerik.Web.UI.RadDropDownTree.CreateHeader() +135
       Telerik.Web.UI.RadDropDownTree.CreateChildControls() +57
       System.Web.UI.Control.EnsureChildControls() +83
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +27
       System.Web.UI.Control.FindControl(String id) +12
       Telerik.Web.UI.HierarchicalControlItemContainer.FindDataSourceControl() +124
       Telerik.Web.UI.HierarchicalControlItemContainer.GetDataSource() +107
       System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +58
       System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +19
       System.Web.UI.Control.LoadRecursive() +54
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

    any one know any thing about this error??
    i have no mention of this control in my code view (code behind)
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 22 Aug 2013 Link to this post

    Hello Moha,

    We are already aware of the issue that you describe and it is already logged in our internal system so that our developers can review and fix it. Meanwhile as a workaround I can offer that you set the datasource from the code behind (which currently resolves the exception).

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top