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

changing the background color of a textbox

1 Answer 866 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 06 Mar 2014, 03:03 AM
I'm using the report designer.

I would like to find out whether it is possible to change the background color of a textbox based on its value.
So instead of showing the value, I'm just showing the value as the background color.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 10 Mar 2014, 02:43 PM
Hello Oliver,

You can leave the TextBox.Value empty and apply Conditional Formatting based on the desired value to style its background. If you need to use more complex logic, you can use a binding to the Style.BackgroundColor property and a custom function.

I hope this information helps you.

Regards,
Stef
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
General Discussions
Asked by
Oliver
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or