I'm trying to prepare a standalone test case in order to reproduce some problems I got with ListGrid using a RestDataSource (not client-only).
Hence I've prepared some files that could be served by Jetty in GWT DEV mode just to simulate REST web service json responses.
I've configured the ListGrid to use a data page size of 25 and dynamically setted the _actionUrl_ in order to request the _right fake response_ file (according to the actual needed range of records).
The problem is: my ListGrid automatically triggers several fetches - hence consuming all data from server - while I'd like to have fetch requests triggered only when I scroll till the bottom of the ListGrid.
I've enabled ResultSet and ListGrid logging... this chunk seems strange to me:
13:37:29.451:XRP4:INFO:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):Received 25 records from server
13:37:29.451:XRP4:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):full length set to: 100
13:37:29.451:XRP4:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):integrating 25 rows into cache at position 0
13:37:29.451:XRP4:INFO:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):cached 25 rows, from 0 to 25 (100 total rows, 25 cached)
13:37:29.511:TMR6:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(99,100), cache check: 87,100 firstMissingRow: 87 lastMissingRow: 100
I don't know why there some range (99,100) processing, and I suppose it triggers the fetch.
I guess there's something wrong with my response data simulation, but I didn't get it.
If you could please help me on fixing this code it could be useful for other forum users, except that obviously I could then proceed working on my issues.
I'm going to attach the code and data files.
Tried with SmartGWT 3.1 [SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)]
Browser: FireFox 10.0.11
Hence I've prepared some files that could be served by Jetty in GWT DEV mode just to simulate REST web service json responses.
I've configured the ListGrid to use a data page size of 25 and dynamically setted the _actionUrl_ in order to request the _right fake response_ file (according to the actual needed range of records).
The problem is: my ListGrid automatically triggers several fetches - hence consuming all data from server - while I'd like to have fetch requests triggered only when I scroll till the bottom of the ListGrid.
I've enabled ResultSet and ListGrid logging... this chunk seems strange to me:
13:37:29.451:XRP4:INFO:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):Received 25 records from server
13:37:29.451:XRP4:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):full length set to: 100
13:37:29.451:XRP4:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):integrating 25 rows into cache at position 0
13:37:29.451:XRP4:INFO:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):cached 25 rows, from 0 to 25 (100 total rows, 25 cached)
13:37:29.511:TMR6:DEBUG:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(99,100), cache check: 87,100 firstMissingRow: 87 lastMissingRow: 100
I guess there's something wrong with my response data simulation, but I didn't get it.
If you could please help me on fixing this code it could be useful for other forum users, except that obviously I could then proceed working on my issues.
I'm going to attach the code and data files.
Tried with SmartGWT 3.1 [SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)]
Browser: FireFox 10.0.11
Comment