I want to make a WinJS.UI.ListView paging, paging is working at the time I reached the last scroll index. when the index reached last, I am requesting more data to the server with the API. is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to look at creating your own custom data source to handle this. See the MSDN article How to create a custom data source:
http://msdn.microsoft.com/en-us/library/windows/apps/hh770849
and the accompanying sample code:
http://code.msdn.microsoft.com/windowsapps/ListView-custom-data-4dcfb128
In short, you’ll be creating a class that implements the IListDataAdapter interface and using it with your own derivation of the VirtualizedDataSource class. The ListView will take care of the visual display and will call your code when it needs more data.