Posted 19 November 2017, 1:22 pm EST
looking at example http://help.grapecity.com/componentone/NetHelp/Xamarin-iOS/webframe.html#CollectionViewQuickStart.html
if i modify the example so it will only return 60 items ie
protected override async Task<Tuple<string, IReadOnlyList>> GetPageAsync(int startingIndex, string pageToken, int? count = null, IReadOnlyList sortDescriptions = null, FilterExpression filterExpresssion = null, CancellationToken cancellationToken = default(CancellationToken))
{
var newItems = new List();
await Task.Run(() =>
{
// create new page of items
for (int i = startingIndex; i < 60; i++)
{
newItems.Add(new MyDataItem(startingIndex + i));
}
});
return new Tuple<string, IReadOnlyList<MyDataItem>>("token not used", newItems); }
how do I prevent the loading spinner from showing at the bottom of the tableview?