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
145
Igx-grid datasource
posted

Hi,


I am using angular 6, Working on Igx-grid. I want to get the datasource of Igx-grid. Is it possible? If yes then how we can do that?

For example,

In IgGrid we can use -

$('#grid1').data('igGrid').dataSource.settings.filtering.expressions.

In the similar way what I should use for Igx-grid?

Please let me know the solution.

Thanks in Advance!

  • 1320
    Offline posted

    Hello Vaishnavi,

    After investigating this further, I determined that the grid data could be accessed by using the data property as follows:

    this.grid.data

    Additionally, the filtering expression is present in the event arguments of onFilteringDone event and the dataView returns the currently transformed paged/filtered/sorted/grouped/pinned/unpinned row data, displayed in the grid.

    I have prepared a small sample, logging the data, the filtering expression and the dataView in the console in a method bound to the onFilteringDone event. Please let me know if you need any further information regarding this matter.

    Please keep in mind that IgniteUI for Angular version 6 is considered retired and it is no longer eligible for Developer Support Services.

    Regards,
    Monika Kirkova,
    Infragistics