This is a migrated thread and some comments may be shown as answers.

Show record count, but no pagination

1 Answer 1496 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 05 Sep 2019, 07:54 PM
I want to show the total number of records in a grid, in the grid footer, but I do not want to have pagination in my grid.  How do I accomplish this?

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 09 Sep 2019, 09:56 AM
Hi Joe,

Generally, the information about the total count of the items is a functionality of the pager. Therefore, if you would like to show the items count without enabling paging, I can suggest two approaches:

1. In the Pageable configuration of the grid set the .Numeric(false) and PreviousNext(false). And set a PageSize() large enough to fit all of the items from the data source. 

2. Disable the paging. And for the last column of the grid set the count aggregate. Then in the ClientFooterTemplate of the same column, show the count. This would lead to something similar to the live demo below:

https://demos.telerik.com/aspnet-mvc/grid/aggregates

Let me know in case additional clarifications are needed for either of the approaches.


Best regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or