I have an extended radcombobox item call FeatureComboBoxItem that adds a featureID to the radcomboboxitem. I'd like to have these types of objects used instead of the normal radcombobox item when automatically databinding from a sqldatasource control. To support this I extended the radcombobox to include a string property that tells the name of the column used to populate the featureID of the FeatureComboBoxItem. I figured there was a function I could overwrite to return FeatureComboBoxItems instead of the normal radcomboboxitem but I got lost. Is it possible to use a different type of object for the item or am I stuck with using a radcomboboxitem?
Public Class FeatureBoxItem
Inherits Telerik.Web.UI.RadComboBoxItem
Implements IFeatureItem
Public Property FeatureID As System.Guid Implements IFeatureItem.ID
Get
Return If(ViewState("FeatureID"), Guid.Empty)
End Get
Set(ByVal value As System.Guid)
ViewState("FeatureID") = value
End Set
End Property
'IFeatureItem implementation hidden
End Sub
End Class
Public Class FeatureComboBox
Inherits Telerik.Web.UI.RadComboBox
'What do I do in here?
End Class
Public Class FeatureBoxItem
Inherits Telerik.Web.UI.RadComboBoxItem
Implements IFeatureItem
Public Property FeatureID As System.Guid Implements IFeatureItem.ID
Get
Return If(ViewState("FeatureID"), Guid.Empty)
End Get
Set(ByVal value As System.Guid)
ViewState("FeatureID") = value
End Set
End Property
'IFeatureItem implementation hidden
End Sub
End Class
Public Class FeatureComboBox
Inherits Telerik.Web.UI.RadComboBox
'What do I do in here?
End Class