I've been following the instructions on this page to get Telerik controls working in a SharePoint WebPart. I'm getting an error on the following line in the OnInit method:
The error says:
"The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."
I reckon the RadScriptManager could be added to the masterpage, but because it is a WebPart we're building we'd much prefer to keep it as a self-contained object. Anyway, it looks like the example code isn't really valid. Am I missing something?
this
.Page.Form.Controls.AddAt(0, scriptManager);
"The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."
I reckon the RadScriptManager could be added to the masterpage, but because it is a WebPart we're building we'd much prefer to keep it as a self-contained object. Anyway, it looks like the example code isn't really valid. Am I missing something?