PDA

View Full Version : event to change text that shows count after filtering



shankar8rajah1
20 Nov 2013, 8:37 AM
I have the following label:


{
text: 'Count: ' + grid.store.getCount(),
id: 'count'

}

In the initial load I'll get the correct count of total records (ie. Count: 700). However, I would like to change the value of the count as I do filtering, but can't seem to find the event where I should change the the text value:



recordCount= store.getTotalCount();
Ext.getCmp('count').setText('Count: ' + recordCount );


I use FilterFeatures with a list filters.

Gary Schlosberg
22 Nov 2013, 12:17 PM
The docs (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.ux.grid.FiltersFeature) mention a filterupdate event:

A filterupdate event is added to the GridPanel and is fired upon onStateChange completion.