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

Give Grid cell background same color as pie slice

4 Answers 25 Views
Chart
This is a migrated thread and some comments may be shown as answers.
jason
Top achievements
Rank 1
jason asked on 17 Nov 2011, 08:47 PM
I am building a combination chart with a grid on top and pie chart on the bottom.  I would like to match the background of the row header with the background of the cooresponding pie slice.  I checked the threads for any info on getting background colors but all of the posts seem to be a couple years old and the replies made it seem like this might be possible at some point.  I also saw the sales manager dashboard demo and it look like something similar is done there.  Attached is a picture of what I am going for.

thanks.

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 18 Nov 2011, 04:09 PM
Hi Jason,

 

You may apply such conditional styling based on underlying property value using StyleSelectors.
I would recommend you to run through our online demos for further reference. 
Can you verify how this works for you? 



Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
jason
Top achievements
Rank 1
answered on 20 Nov 2011, 04:41 PM
Setting the background of a grid cell is not an issue for me.  My problem is getting the background color of a pie slice.  Also, my 'grid' is actually just a content control I created that is more like a table than a grid so I am not using telerik's GridView control.  If the user binds the chart palette to a list of brushes then I can just use that list as well but if no palette is supplied then I need to get the list of brushes from the chart itself.  Attached is what I have when palette is supplied.
0
jason
Top achievements
Rank 1
answered on 20 Nov 2011, 04:43 PM
My apoligies for the multiple post I kept getting an error stating there were problems with your server but apparently the it was still posting.
0
Sia
Telerik team
answered on 22 Nov 2011, 02:53 PM
Hello Jason,

I am not sure that I understand your case correctly. Unfortunately currently there is no programmatic way for getting the default colors of our Pie.

Please let me know which theme you use in your solution and I will send you the 10 default colors.

Greetings,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
jason
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
jason
Top achievements
Rank 1
Sia
Telerik team
Share this question
or