4 Answers, 1 is accepted
0
Hi Antonis,
Thank you for your question.
This is actually related to the new life cycle, introduced in RadElement. Child element creation is now straight forward and happens in the constructor of each element, that is why we have removed the EnsureChildElements method as it is no longer needed. Still, the CreateChildElements method is doing exactly what it was doing in Q2, so there should not be any problem if you simply remove the call to the EnsureChildElements method.
You can find more information in this blog post. The CreateChildElements is called during the Constructing state of the element.
I hope this helps. Do not hesitate to contact us if you have other questions.
Regards,
Georgi
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thank you for your question.
This is actually related to the new life cycle, introduced in RadElement. Child element creation is now straight forward and happens in the constructor of each element, that is why we have removed the EnsureChildElements method as it is no longer needed. Still, the CreateChildElements method is doing exactly what it was doing in Q2, so there should not be any problem if you simply remove the call to the EnsureChildElements method.
You can find more information in this blog post. The CreateChildElements is called during the Constructing state of the element.
I hope this helps. Do not hesitate to contact us if you have other questions.
Regards,
Georgi
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0

Antonis
Top achievements
Rank 1
answered on 06 Nov 2009, 10:16 AM
Hi Georgi,
Thanks for your answer. I would like to tell me what happens when there is an overriding CreateChildren sub. In my case it seems that the New sub of the element is being called AFTER the CreateChildren sub and so if the element has a collection of items they are not initialized and thus I get an error.
Thanks for your time
Thanks for your answer. I would like to tell me what happens when there is an overriding CreateChildren sub. In my case it seems that the New sub of the element is being called AFTER the CreateChildren sub and so if the element has a collection of items they are not initialized and thus I get an error.
Thanks for your time
0

gmendez
Top achievements
Rank 1
answered on 06 Nov 2009, 02:03 PM
Hello Georgi,
Even I'm getting lots of troubles with the latest release, I followed your recomendations for this case and it worked Ok.
The help shoud be updated with this change.
Regards,
Gonzalo
Even I'm getting lots of troubles with the latest release, I followed your recomendations for this case and it worked Ok.
The help shoud be updated with this change.
Regards,
Gonzalo
0
Hi Antonis,
Could you please send me a sample project that demonstrates the problems you are experiencing so that I can help you further?
Thank you in advance.
Greetings,
Georgi
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Could you please send me a sample project that demonstrates the problems you are experiencing so that I can help you further?
Thank you in advance.
Greetings,
Georgi
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.