View Full Version : row count

2 Sep 2012, 4:24 AM
How to make count of total rows present in a grid without using it's store?

2 Sep 2012, 7:21 PM
Try this:

var view = <grid>.getView();
var count = view.getEl().query(view.itemSelector).length;
console.log(count, grid.getStore().getCount());

However I don't suggest you to use this way because it maybe not correct in some cases. Why don't you use store.getCount()?