By default paging combo includes 10, 20 and 50 page sizes, regardless of number of records displayed in the grid (i.e. if records counts to 11 then also page size combo displays 10, 20 and 50).
If we want to customize the page size combo items to show
- Records count > 10 then page size items should show 10 and 20
- Records count >= 20 then page size items should show 10, 20 and 50
In order to achieve the above functionality, we will be using RadGrid ItemCreated and ItemEvent events, refer the below code.
Displaying page combo always regardless of number of records, refer below code
Showing "Show All" option in page size combo, refer below combo