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

How to achieve transparent background of RadChart in a RadGrid cell?

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DAVE
Top achievements
Rank 1
DAVE asked on 10 Sep 2013, 04:12 PM
I am using Chart to create a small sparkline chart in a grid column.  Works great but I can't figure out how to get a truly transparent background on the chart.  I am setting colors thusly:

chart.PlotArea.Appearance.FillStyle.MainColor =

Color.Transparent;

 

chart.PlotArea.Appearance.FillStyle.SecondColor =

Color.Transparent;

 


But when the chart is displayed on an alternating color row the background of the chart is white, not transparent.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 13 Sep 2013, 10:17 AM
Hi Dave,

Please try the following code snippet ,remove the PlotArea,from your code.
chart.Appearance.FillStyle.MainColor = Color.Transparent;

Thanks,
Princy
0
Venelin
Telerik team
answered on 13 Sep 2013, 01:11 PM
Hi Dave,

Please find attached a sample project that demonstrates Princy's approach. Let us know if this is what you are looking for.

Regards,
Venelin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
DAVE
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Venelin
Telerik team
Share this question
or