Hi, I'm using ASP.NET AJAX version 2011.3.1305.35.
I'm trying to do something as simple as:
1) Add all RadComboBoxItems to the combobox by looping through a List.
2) Add an Attribute to each RadComboBoxItem, in that same loop.
When I bind the combo box by setting the DataSource Property to my List, the items display as expected.
When I loop through the List and add the items and attributes, all of the items and attributes are added, but the items do NOT display in the combo box. The combo box appears blank / empty.
The combo box displays in a Rad Grid row, when the row is in edit mode.
The combo box is populated during the ItemDataBound event of the RadGrid, when the row is put into edit mode.
My code follows (but I've tried a whole bunch of variations of it):
I've tried not doing a DataBind; I've tried doing the DataBind after adding all of the items, I've tried setting the AppendDataBoundItems property to True. No matter what I do, my combo box is populated BUT IT displays as being EMPTY / BLANK.
comboBox.DataValueField = "emEventID"
comboBox.DataTextField = "emEventTitle"
Dim cbItem As RadComboBoxItem
For Each project As EM_EventsItem In filteredEventsList
cbItem = New RadComboBoxItem(project.emEventTitle, project.emEventID)