Hi,
I trying to put some html as text in a radcombobox but I cant figure out how to turn of the automatically htmlencode.
I'm binding my items codebehind:
/Mattias
I trying to put some html as text in a radcombobox but I cant figure out how to turn of the automatically htmlencode.
I'm binding my items codebehind:
RadComboBox radComboBoxStatuses = (RadComboBox)gridEditItem.FindControl("radComboBoxStatuses"); |
IList statuses = EnumHelper.ToLocalizedList(typeof(ActionPlanStatus), Resources.resources.ResourceManager); |
foreach (KeyValuePair<Enum,string> s in statuses) |
{ |
RadComboBoxItem item = new RadComboBoxItem(); |
item.Text = "<span class=\"activityStatus timeline_dataRow" + ActionPlanService.GetActivityStatusColor((ActionPlanStatus)s.Key) + "\"></span><span>" + s.Value + "</span>"; |
item.Value = s.Key.ToString(); |
radComboBoxStatuses.Items.Add(item); |
} |
<telerik:RadComboBox ID="radComboBoxStatuses" runat="server" AllowCustomText="true" > |
</telerik:RadComboBox> |
/Mattias