RadChartView - RadGridView integration

3 posts, 0 answers
  1. Carlo
    Carlo avatar
    11 posts
    Member since:
    Nov 2016

    Posted 17 Jan Link to this post

    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. Dinko
    Admin
    Dinko avatar
    416 posts

    Posted 17 Jan Link to this post

    Hello Carlo,

    We have prepared sample project showing how you can RadChartView with RadGridView. As for the updating the chart when you filtered the gridview 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 gridview 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 allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Carlo
    Carlo avatar
    11 posts
    Member since:
    Nov 2016

    Posted 17 Jan in reply to Dinko Link to this post

    Thank you so Dinko, it's perfect!
Back to Top