Hi All,
I have a templated combobox like so:
<
telerik:RadComboBox
id
=
"ddlProgressiveInterventionBehaviour"
Width
=
"450px"
Skin
=
"Bootstrap"
runat
=
"server"
DataTextField
=
"Description"
Height
=
"400"
DataValueField
=
"ID"
AutoPostBack
=
"true"
HighlightTemplatedItems
=
"true"
>
<
HeaderTemplate
>
<
table
>
<
tr
>
<
td
style
=
"width: 200px;"
>
Policy For Success</
td
>
<
td
style
=
"width: 80px;"
>
Risk Level</
td
>
<
td
style
=
"width:300px;"
>
Behaviour</
td
>
<
td
style
=
"width: 40px;"
>
Points</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
>
<
tr
>
<
td
style
=
"width: 200px;"
>
<%# DataBinder.Eval(Container.DataItem, "PolicyForSuccessName")%>
</
td
>
<
td
style
=
"width: 80px;"
>
<%# DataBinder.Eval(Container.DataItem, "InitialRiskLevelName")%>
</
td
>
<
td
style
=
"width: 300px;"
>
<%# DataBinder.Eval(Container.DataItem, "Name")%>
</
td
>
<
td
style
=
"width: 40px;"
>
<%# DataBinder.Eval(Container.DataItem, "RiskLevelPointsEachInstance")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
The radcombo is databound to a generic list of objects that have the attributes listed. I can easily add a cssclass name attrbute to each object int the list or a hexcolor attribute etc. When rendered it looks like the attached file. My question is assuming I have a cssclass called .makered {..} how do I apply it to items that have a level of 3 on the risklevel column for ONLY the risk level column in the template, ie, for specific columns and specific items. Applying the class to the whole row would work fine too. Items are databound...not added in the markup. Also any help lining up the columns would be helpful.
Thanks!