Unplanned
Last Updated: 12 Jun 2023 20:07 by David
Hanoch
Created on: 30 May 2022 12:57
Category: DataGrid
Type: Feature Request
10
DataGrid: Provide paging functionality
Provide the option to add paging functionality at the bottom of the DataGrid, so data will be loaded in portions.
4 comments
David
Posted on: 12 Jun 2023 20:07

I got Max's code, slightly edited, to build OK. Not yet tested. Thank you, Max.

As he notes, his code offers very basic features (page number, total pages, back, forward, and refresh).

I really don't want my mobile user scrolling through hundreds of entries or pressing the same button repeatedly when avoidable. A fuller Telerik implementation, similar to Telerik's Blazor Pager or WPF DataPager, would be very helpful; I only plan to use my code as a stopgap until better becomes available.

My edits to Max's:

Instead of fixed stylings per button, used Button Styles I had already defined in Resources.MauiStyles having no need for FontAwesome (some of which requires a paid subscription).

Named each button.

Using char.ConvertFromUtf32() in the code behind, replaced the use of FontAwesome text icons and the FontAwesome XAML reference by setting button texts from Unicode symbols :

Back: 0x21D0

Fwd: 0x21D2

Refresh: 0x27F3

In code behind, changed DelegateCommand to Command and eliminated any unnecessary uses of "this."

 

Max
Posted on: 03 Jan 2023 11:15

@Hanoch I've just posted the code which I used for you to resolve this issue welcome to use it. 

 

https://www.telerik.com/forums/radgridpager-for-maui 

Hanoch
Posted on: 03 Jan 2023 11:06
Super important, is part of data grid control.
Max
Posted on: 08 Nov 2022 14:01
Extremely surprised more people havent requested this functionality.