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

Conditional formatting in code

1 Answer 200 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Leszek
Top achievements
Rank 1
Leszek asked on 09 Apr 2009, 03:22 PM
Hi,
I would like to set background color in one control (panel) depends on value in another control (textBox). How I can to do it programatycly. I dont want to change color in whole row.
I'm adding datasource programatycly. It is something like "foreach" where I will able to check each row and to change color? 
Could you help me?
Leszek

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Apr 2009, 02:16 PM
Hello Leszek,

I've attached a sample unbound report to point you in the right direction. I am using the report parameter in this case, but you can of course use Fields when the report is bound. Enter 2 for the param value to change the panel's background.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Leszek
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or