I'm trying to pad the text of a RadComboBoxItem with spaces (to create a sense of hierarchy). This works fine with a regular HTML select control:
However, when I try to set the text property of a RadComboBoxItem using html entities ( ), the control seems to be escaping the characters so it shows up exactly as typed instead of showing up as an actual space:item.Text = padding + asset.AssetName;
Any ideas about how to prevent the RadComboBox from escaping HTML entities?
<select> <option>Item 1</option> <option> Item 1.1</option> <option> Item 1.2</option> <option>Item 2</option> <option> Item 2.1</option> <option> Item 2.1.1</option> <option> Item 2.1.2</option> <option>Item 3</option> <option> Item 3.1</option> <option> Item 3.2</option></select>However, when I try to set the text property of a RadComboBoxItem using html entities ( ), the control seems to be escaping the characters so it shows up exactly as typed instead of showing up as an actual space:item.Text = padding + asset.AssetName;
string padding = "";for(int i = 0; i < depth; i++) padding += " ";RadComboBoxItem item = new RadComboBoxItem();item.Value = asset.AssetID.ToString();item.Text = padding + asset.AssetName;item.Enabled = (asset.Type == AssetType.AppSet);item.Selected = (asset.AssetID == ParentAssetID);rcb.Items.Add(item);Any ideas about how to prevent the RadComboBox from escaping HTML entities?
