This is a migrated thread and some comments may be shown as answers.

Value property does not accept < > & ?

0 Answers 63 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 11 Jan 2012, 06:54 PM
Edited: Problem resolved.
It was due to inconsistent html encoding of Value/Text in different places. &, <, > are all well supported.
 

Hello,
 
We came across a (maybe) problem with the combo item value property:

- Add an item with something like "abc > xyz" in the Value property
- Select the item in the combo. The combo SelectedValue will return "".
- Html encoding the value does not (strangely) work neither

For your information: We set the value property of items in the RadCombo1_ItemDataBound event, like this: 
protected void RadCombo1_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
{
			dynamic data = e.Item.DataItem;
			e.Item.Text = data.MyText;
			//e.Item.Value = data.MyCode;
}

Would you please let me know if there is a workaround (other than removing html entities from values). We can wait for a future fix.

Thank you,
Stephan

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Stephan
Top achievements
Rank 1
Share this question
or