Reputation: 337
When rowGroup applied to any column in aggrid, and
statusPanel: 'agTotalAndFilteredRowCountComponent'
,rows counts display like this in footer
rows : X of Y
but i want sow only X , how to achieve this ? agFilteredRowCountComponent doesn't show anything. Please help
Upvotes: 0
Views: 596
Reputation: 628
You can achieve the goal in two ways:
1. use already defined ag-grid component
{ statusPanel: 'agTotalAndFilteredRowCountComponent', align: 'left' }
2. Define your custom StatusBarComponent
:
statusPanels: [
p { statusPanel: StatusBarComponent, align: 'left' },
...
]
Please note, that this is a simple example of implementation related to your issue - full review of the problem probably will take andvantage of different Grid Events like 'filterChanged', implement 'getTotalRowCountValue' or 'onDataChanged' methods etc.
Upvotes: 1