This question is locked. New answers and comments are not allowed.
Hi,
I have created the template form with the control RadTabStrip. When the other form inherites from the template, I can’t add more TabItems in design time, because it fails. The errors are:
at Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(Object value) at Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value) at System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value) at Telerik.WinControls.RadItemCollection.OnInsertComplete(Int32 index, Object value) at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) at Telerik.WinControls.RadItemCollection.AddRange(RadItem[] value) |
But if i comment the line
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.tabItem2});
and change it for
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
new Telerik.WinControls.UI.TabItem()
});
there is no error. In run time it doesn´t present this error.