Is there support for an infinite list backed by the websql proxy? It doesn't seem so, as whether infinite is true or false, there are only 25 items in the list.
Asked
Active
Viewed 87 times
0
-
You can read my answer here: http://stackoverflow.com/questions/29240460/set-page-size-sencha-touch . This will help you understand the concept more. – Anand Gupta Mar 25 '15 at 06:53
2 Answers
0
I was able to get this to work by modifying the Sql proxy to include total record count. More specifically, in the selectRecords method I had to change the code:
result.setTotal(count);
to a second executeSql call that queries all records. The sql statement is similar to the original one, except that (1) it does not include the LIMIT expression; and (2) the SELECT *
should be SELECT COUNT(*) AS TotalCount
. Then read TotalCount value from the first row of the result set, call result.setTotal(totalCount)
, and finally fire the callback.

jacob
- 2,762
- 1
- 20
- 49
0
You should use ListPaging
plugin in the list.
{
xclass: 'Ext.plugin.ListPaging',
autoPaging: true,
loadMoreText : 'Loading more',
noMoreRecordsText : 'loaded'
}
Please check sencha touch documentation for further info.

Sagar Khatri
- 1,004
- 8
- 23