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

Row conditional formatting with enum value

3 Answers 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 12 Aug 2009, 02:30 PM
Hello,

I am having problem setting up conditional formatting with enum value.

The grid is bound to the list of objects which have the enum called Priority { High, Normal, Low }. I am setting different colors based on the priority and the formatting is not working. The case sensitive has no effect.

Any ideas ?

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 13 Aug 2009, 09:15 AM
Hello Roland,

Currently conditional formatting doesn't support enum values. You should use CellFormatting event instead. Please check this KB article.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Roland
Top achievements
Rank 1
answered on 13 Aug 2009, 01:37 PM
Hello,

Thanks for answer. It seems that the conditional formating object works only with numbers.

The question is why the constructor supports string values if they are not working ?
0
Accepted
Jack
Telerik team
answered on 14 Aug 2009, 07:03 AM
Hello Roland,

Actually it works with numbers and strings. Currently it doesn't support enum values.

Regards,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Roland
Top achievements
Rank 1
Answers by
Jack
Telerik team
Roland
Top achievements
Rank 1
Share this question
or