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

Conditional Formatting

4 Answers 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 12 Jun 2012, 05:19 PM
Hi..
How do you do conditional formatting with the combox?
For example any name that start with 'A' change the background to green and the font to bold.
thanks in advance

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 13 Jun 2012, 08:21 AM
Hello,

You should be able to achieve this using the ItemTemplateSelector property of the RadComboBox.

Please give it a try and let us know if that worked for you.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Jon
Top achievements
Rank 1
answered on 13 Jun 2012, 12:35 PM
Can please point me to a sample that does this?
thanks
0
Vladi
Telerik team
answered on 14 Jun 2012, 10:42 AM
Hello,

I have prepared and attached a simple project recreating the conditional templating of RadComboBox. Also you can read this article about DataTemplateSelector.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jon
Top achievements
Rank 1
answered on 15 Jun 2012, 05:18 PM
thanks!!!!!!!!!!!!!!!!!!!!!
Works great
Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Jon
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or