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

Set the BackColor of a table cell to the value that is stored in Fields

3 Answers 247 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Philipp
Top achievements
Rank 1
Philipp asked on 28 Feb 2017, 12:36 PM

Hello, 

i have a table and want to set the backcolor of my cells to the Hex-Value that is stored in my Fields. Is this even possible and if yes, how can i do this?

Greets, Philipp

3 Answers, 1 is accepted

Sort by
0
Philipp
Top achievements
Rank 1
answered on 28 Feb 2017, 12:48 PM
[quote]Philipp said:

Hello, 

i have a table and want to set the backcolor of my cells to the Hex-Value that is stored in my Fields. Is this even possible and if yes, how can i do this?

Greets, Philipp

[/quote]

 

Sorry i forgot to tell, i have Telerik Reporting Q2 2015 SP1 running in an ASP.NET MVC App.

0
Accepted
Katia
Telerik team
answered on 01 Mar 2017, 01:28 PM
Hi Philipp,

This can be achieved by adding a binding for Style.BackgroudColor property to the Bindings collection of the TextBox item, for example:
PropertyPath: Style.BackgroundColor
Expression: = Fields.HexValue

This approach is demonstrated in the attached report that can be opened with Standalone Designer Q2 2015 SP1.

I hope this will help.


Regards,
Katia
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Philipp
Top achievements
Rank 1
answered on 01 Mar 2017, 02:25 PM
Thanks,that works perfect!
Tags
General Discussions
Asked by
Philipp
Top achievements
Rank 1
Answers by
Philipp
Top achievements
Rank 1
Katia
Telerik team
Share this question
or