Search code examples
infragisticsignite-uiiggrid

Get datasource after applying filtering


I am using igGrid, I would like to get the dataSource of the grid AFTER the filtering has been applied

I have found this link http://www.infragistics.com/community/forums/t/79677.aspx which is helpful but doesn't answer my question.

This is the code I use to filter my grid

$grid.igGridFiltering("filter", filterExpressions, false);

Now I need to do something like this

$('#grid1').igGrid('option','dataSource') //but this gives me the dataSource before filtering!

Solution

  • You can get the filtered data using the following syntax:

    $("#grid1").igGrid().data("igGrid").dataSource.dataView()