Row Count on Loaded and Filtered
New DiscussionI suspect this has been asked and answered previously, but I have not found the info…
I would like to display row counts after my igGrid is filtered. For example, 400 of 500 records displayed.
I am using local filtering in advanced mode and have a dataFiltered handler…
var _filtered = function(e, arg) {
var total = …. //total number of rows in the grid
var filtered = … //number of rows visible after the grid has been filtered
$(‘#status’).text(filtered+ ” of ” + total + ” records displayed.”);
};
How can I find the total number or rows and the number visible after filtering?
Also, is there an event to which I can bind where I can initialize the status with the total number of rows in the grid?
$(‘#grid’).on(‘iggridloaded’, function () {
var total = … // total rows in the grid
$(‘#status’).text(total + ” records”);
});
Thanks for the help
ROB