2

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!
Paul
  • 1,457
  • 1
  • 19
  • 36

2 Answers2

2

You can get the filtered data using the following syntax:

$("#grid1").igGrid().data("igGrid").dataSource.dataView()
Konstantin Dinev
  • 34,219
  • 14
  • 75
  • 100
0

You can Get the filtered data when the grid have with pagination with this syntax:

$("#Grid1").igGrid().data("igGrid").dataSource.filteredData()
stackprotector
  • 10,498
  • 4
  • 35
  • 64