This is a migrated thread and some comments may be shown as answers.

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

4 Answers 333 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Moha
Top achievements
Rank 1
Moha asked on 21 Aug 2013, 01:42 PM
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)

4 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 22 Aug 2013, 07:12 AM
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.
0
Kaustav
Top achievements
Rank 1
answered on 09 Dec 2016, 11:46 AM

Hi Kate,

Has there been any fix found out for this issue? I am also facing the same isssue.

0
Nencho
Telerik team
answered on 13 Dec 2016, 11:54 AM
Hello Kaustav,

Since the referenced problem in this thread is quite old and it had already been fixed, I would like to ask you to elaborate a bit more on your scenario. First - what is the exact version of our controls that you are currently using? In addition, please provide us with the implementation that you have at your end, needed for the problem replication, so we could locally test it and pin down the reason for the exception.

Regards,
Nencho
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Seham
Top achievements
Rank 1
answered on 28 Nov 2017, 08:56 AM

Hi 

I have the same problem " The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."

how can I solve it please?

Tags
DropDownTree
Asked by
Moha
Top achievements
Rank 1
Answers by
Kate
Telerik team
Kaustav
Top achievements
Rank 1
Nencho
Telerik team
Seham
Top achievements
Rank 1
Share this question
or