List<T> with Azure Mobile Service Managers

Enrique4toEnrique4to ✭✭Member ✭✭

Hi.

I Have a problem with my lists when i fill there from Azure Sql Server with Azure Mobile Service Managers, only takes the first 50 rows.

I solve that with Take(1000), but i have a table with more than 1000 rows, so the service only take the first 1000 rows.

My question is... how i can add something like pages in the List, each page with 1000 rows depend of total number of rows in the table on server??

Thanks in Advance

Answers

  • Sandman9Sandman9 ✭✭ Member ✭✭

    Hi,

    I think you can use InfiniteScroll. You can bind your list for every 1000 rows with Skip(1000).Take(1000)

    Please check plugin: InfiniteScrolling

  • LandLuLandLu Xamurai Member, Xamarin Team Xamurai
    edited September 17

    There's no need to load all the rows at the initial time.
    You can try to load more items when the list view has reached the end:
    https://montemagno.com/load-more-items-at-end-of-listview-in/

  • Enrique4toEnrique4to ✭✭ Member ✭✭

    @LandLu said:
    There's no need to load all the rows at the initial time.
    You can try to load more items when the list view has reached the end:
    https://montemagno.com/load-more-items-at-end-of-listview-in/

    That's can work for a ListView, but, what i need is for a simple List,,, that list won't be showed, tha is just to take information from items on that list.

    but i will aply the information you gave me.

    thanks

  • LandLuLandLu Xamurai Member, Xamarin Team Xamurai

    @Enrique4to I don't recommend you to place so large list in the memory. If you want to use it for querying something why not use the local storage?
    Store your data to the local database and you can query everything you want later.

Sign In or Register to comment.