1. To set the control properties you need to get the page again, get its staged version and controls collection. Then, find your control as ICmsWebControl and then cast it to type of your user control. You can find some samples here
2.This type of error "Index was outside the bounds of the array"
is thrown by the .NET Framework, when you are accessing an item in an indexed object and the accessed index is out of bounds .You have an ArrayList and you are trying to access an index that is not available. It looks like at the time your are trying to retrieve the data the control has no items. The problem is most probably related to the way you are binding this control and in which stage of its lifecycle you are doing this. Note that in Edit mode the Page is null
, so this could be one of the reasons for this issue. You could check if the page is null where you bind your data, so that you will escape the page edit mode and the error will not be thrown.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items