Binding RadPieChart slice to a brush property

2 posts, 1 answers
  1. Eyal Ellenbogen
    Eyal Ellenbogen avatar
    11 posts
    Member since:
    Jul 2009

    Posted 14 Jul 2012 Link to this post


    I have a collection and each item in this collection contains a "Brush" property. I want to show this data using the RadPieChart and I want to bind each slice to its appropriate brush. I found many posts about setting the Pallete but that's not what I need. I need each slice to be aware of its data item and the brush it is containing. Is it possible?

  2. Answer
    Sia avatar
    766 posts

    Posted 19 Jul 2012 Link to this post

    Hello Eyal,

    You need to use a style selector and return a style depending on the value of the DataItem.Color property. Please find attached a small project showing how to achieve that.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top