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

CompositeFilterDescriptor for CartesianChart

1 Answer 58 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 02 Apr 2020, 11:31 AM

https://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-filter-radchart-using-the-gridviews-compositefilterdescriptor

I was following the above post regarding using a GridView and CompositeFilterDescriptor to filter a chart, however, I noticed that the example only applies to RadChart, and not RadChartView. When I attempted to implement it on a RadChartView item, I was met with a missing reference error because CartesianChart (in my case) does not have a reference to FilterDescriptors.

Is there any way to achieve this same effect with the current RadChartView? I would really like to avoid having to use a RadChart in my application if possible.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 07 Apr 2020, 09:43 AM

Hello Nicholas,

Thank you for the referenced article.

Indeed the RadCartesianChart does not have a FilterDescriptors collection. That said, you should be able to able to achieve a similar result by using the Items collection of the RadGridView in order to populate the chart series. It contains the objects, which are left after filtering. Do give this a try and let me know how it goes.

Regards,
Vladimir Stoyanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ChartView
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or