Thank you for pointing this out for us. Indeed, adding anything but RadListBoxItem
in the RadListBox.Items
collection caused throwing such exception. We have already added refactored RadListBox
(and respectively RadComboBox
) to be capable of adding any descendants if RadItem
. We will introduce this behavior in the upcoming Q3 2007 Service pack version, scheduled next week. Note that you will still not be able to add RadItem
instances as this is a base class. Instead you should use descendants of this class.
Feel free to contact us if you have other questions.
the Telerik team