Data Grid - pagination + scrool bar

1 Answer 993 Views
DataGrid
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 17 Mar 2022, 01:27 PM

Hi,

1.  want to know how I do pagination to RadDataGrid ? for 20/50/200 rows.

2.Scroll view

Thanks,

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 17 Mar 2022, 01:40 PM

Hello Daniel,

The DataGrid doesn't support traditional paging. You can add your own buttons underneath the DataGrid that will fetch certain pages and load only those pages in the dataGrid's ItemsSource.

Load On Demand Option

You can use load on demand as an option to avoid having to load all your data at once, please see .NET MAUI DataGrid Documentation | Load on Demand | Telerik UI for .NET MAUI

Note: It's very important to understand that UI virtualization is not the same as data virtualization. The DataGrid does UI virtualization, it is up to you to do data virtualization you might need. Once you fetch your items in the load on demand event, those items stay in the ItemsSource

For example, let's say your user scroll down and you've loaded 1000 items, your app still has 1000 items in memory even though the DataGrid is showing only a few items.

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 17 Mar 2022, 01:49 PM

What about grid lines
Tags
DataGrid
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or