Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
DataPresenter and xamlChart interaction
posted

Hi,

I'm using DataPresenter in my WPF application. In that same application i'm using xamlChart. I passing the same dataview to both the controls as datasource

When the user did the filter in xamldatapresenter, how to get that filtered data and refresh the xamlchart in the application. Can i get the filtered data in RecordFilterChanged or Changing event ? If yes can you provide the sample code for that .

Thanks in advance

Parents
No Data
Reply
  • 27093
    Verified Answer
    posted

    Hello,

    I have been looking into your requirement and the XamDataGrid has exposed methods just for that, that you can use right away:

    xamDataGrid1.RecordManager.GetFilteredInDataRecords();

    xamDataGrid1.RecordManager.GetFilteredOutDataRecords();

     

    I suppose you are going to need the Records’ underlying data class objects in order to use in the chart. You can get them by casting the Record class to DataRecord and access its DataItem property.

    Please let me know if you require any further assistance on the matter.

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Children