Is there a way to bind a list to a combo box, where the list contains two values on each item. One to be the text, and one for the value?
This works very well as long as it only returns one value. But it would be great if it could work like declaring an item individually and set PageID to the value and PageTitle to the text of each combobox item. I've tried the DataBinding event, but the EventArgs seem to come back null.
RadComboBox1.DataSource = (from t
in
parentList
select
new
{ t.PageID, t.PageTitle }).Distinct();
RadComboBox1.DataBind();
There is a way to bypass that by using the ItemDataBound event and just parsing out the string that's set in the DataItem like,
{ PageID = 1, PageTitle = Page1 Title }