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

RadChartView - RadGridView integration

2 Answers 70 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Carlo
Top achievements
Rank 1
Carlo asked on 17 Jan 2017, 08:49 AM

Hello,

it is possible integrate the RadChartVIew with RadGridVIew?

Something like this (but using RadChartVIew instead of RadChart): 

http://docs.telerik.com/devtools/wpf/controls/radchart/how-to/integration-with-rad-grid-view

 

My objective is to reload the Chart every time when the RadgridView is filtered. There are someexamples about this topic?

 

Thank you!

Regards

Leo

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 17 Jan 2017, 03:41 PM
Hello Carlo,

We have prepared sample project showing how you can RadChartView with RadGridView. As for the updating the chart when you filtered the  you can use EventToCommandBehavior to add Commands that would be triggered by the Filtered event of the RadGridView. In its handler, you can get the event arguments by setting the  PassEventArgsToCommand property to true. Then you can get the currently filtered collection of the  and update the chart. 

Give this project a try and let us know if it helps you. Keep in mind that this approach is not fully tested it and there could be cases where this code would not work as expected. But we think it will be a good starting point for achieving your final behavior.

Regards,
Dinko
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Carlo
Top achievements
Rank 1
answered on 17 Jan 2017, 04:05 PM
Thank you so Dinko, it's perfect!
Tags
ChartView
Asked by
Carlo
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Carlo
Top achievements
Rank 1
Share this question
or