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

[Solved] Binding a color

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wyller
Top achievements
Rank 1
Wyller asked on 03 Nov 2010, 03:42 PM
Hi,

I need to draw a box into a cell filled with a color from a propertie of an object from a collection (my ItemSource).

What's the best way to do it using the RadGridView in SIlverlight?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 08 Nov 2010, 02:31 PM
Hi Wyller,


There are a couple of approaches you can use based on your custom scenario. I have prepared an example for you that defines a CellTemplate and uses a Border element, where its Background property is bound to this particular property that holds the hexadecimal representation of the color. In addition to this I believe that it would be helpful for you Creating Custom Editor with RadGridView.


Please see the attached project and if you need any further assistance let me know.


Kind regards,
Vanya Pavlova
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Wyller
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or