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

Datagrid Paging

1 Answer 315 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 1
Graham asked on 12 Feb 2019, 09:35 AM

Hi,

I'm just starting out with xamarin.forms datagrid and I was looking for the paging method that I use with Asp.Net MVC.

I can only find LoadOnDemand. Is this the recommended method to retrieve more data in a grid?

 

Regards,

Graham

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 13 Feb 2019, 11:15 AM
Hello Graham,

Thank you for your interest in DataGrid for Xamarin.

Indeed, currently the only built-in approach to retrieve more data in DataGrid is through the load-on-demand mechanism. Still, you could manually achieve some sort of paging by updating the ItemsSource of the DataGrid. In short, you could keep a track of the currently loaded items and on button click load the next ones from a collection containing all the items. I have attached a sample app to show you how this would work.

Please download the attachment and give it a try.

Let me know if you have any additional questions on this.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Graham
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or