New to Kendo UI for Angular? Start a free 30-day trial
Displaying all Grid records by using the built-in DropDownList in the Pager
Environment
| Product | Progress® Kendo UI for Angular Grid |
Description
How to display all Grid records by using the built-in DropDownList in the Pager?
Solution
-
Implement a
kendoPagerTemplateand define the built-inPagerPageSizesComponentinside the template.html<ng-template kendoPagerTemplate> <kendo-pager-page-sizes></kendo-pager-page-sizes> </ng-template> -
Create an array of
PageSizeItemobjects and define an object with valueall.tspublic pageSizes: PageSizeItem[] = [ { text: 'All', value: 'all' }, ... ]; -
Finally, bind the
pageSizesproperty of thePagerPageSizesComponentto the collection ofPageSizeItemobjects.html<ng-template kendoPagerTemplate> <kendo-pager-page-sizes [pageSizes]="pageSizes" > </kendo-pager-page-sizes> </ng-template>
The following example demonstrates how to implement the described approach.
Change Theme
Theme
Loading ...