Thanks for the clarifications – they really help out!
I'm afraid that what you are asking isn't available out of the box right now 🙁
However, I think there is a way to circumvent the lack of a data view which satisfies your requirements (local data, local paging and local filtering).
Here is a sample of how to get the data view you need (yes, I'm afraid this approach requires (deep) copying and working with the igDataSource of the grid):
$.ig.loader({
scriptPath: "http://cdn-na.infragistics.com/jquery/20121/2049/js/",
cssPath: "http://cdn-na.infragistics.com/jquery/20121/2049/css/",
resources: 'igGrid.*',
ready: function() {
$('#grid1').igGrid({
virtualization: false,
autoGenerateColumns: false,
width: '500px',
height: '500px',
columns: [
{ headerText: "Product ID", key: "ProductID", width: "100px", dataType: "number" },
{ headerText: "Units in Stock", key: "UnitsInStock", width: "150px", dataType: "number" },
{ headerText: "Product Description", key: "ProductDescription", width: "150px", dataType: "string" },
{ headerText: "Unit Price", key: "UnitPrice", width: "100px", dataType: "string" }
],
dataSource: namedData,
features: [
{
name: "Paging",
type: "local"
},
{
name: "Filtering",
type: "local"
}
]
});
//Filter the grid with a good enough condition so that we can have at least one record on the 2nd page
$('#grid1').igGridFiltering("filter", [{fieldName: "ProductDescription",cond:"contains",expr:"fish"}]);
var filteredDataSource = $.extend(true, {}, $("#grid1").data("igGrid").dataSource);
// we need to disable the paging feature so that the dataView() can represent only the filtered data.
filteredDataSource.settings.paging.enabled = false;
// Filter the copy of the igGrid's internal igDataSource in order to receive the desired data view
filteredDataSource = filteredDataSource.filter($("#grid1").data("igGrid").dataSource.settings.filtering.expressions);
alert("Number of filtered results: " + filteredDataSource.dataView().length);
}
});
PS: I'm also attaching an HTML sample demonstrating the code.
Hope this helps,
Borislav