On fetchData call, it tries to fetch the data 2-3 times. First time is regular fetch with startRow: 0, endRow: 75. Second time it fetches with startRow: 48, endRow: 222. Sometimes it fetches data 3 times right after each other and shows data sets twice on the screen.
You can test it by running sample project (using ServerCountryDS or CountryDS taken+modified from your showcase) or see it in attached Teamviewer recordings which show this behavior very well. Tested on resolution 2560x1600.
This is the actual code which makes problems:
This works ok (fetchData before draw):
Teamviewer 7 recordings showing behavior of listgrid in Firefox
using CountryDS (xml file):
http://www.sendspace.com/file/ayfcgy
using ServerCountryDS (rest datasource):
http://www.sendspace.com/file/nwqm9d
Sample project for eclipse
http://www.sendspace.com/file/9g181p
SmartClient Version: SC_SNAPSHOT-2011-12-05/LGPL Development Only (built 2011-12-05)
Firefox 14.0.1 (Windows)
You can test it by running sample project (using ServerCountryDS or CountryDS taken+modified from your showcase) or see it in attached Teamviewer recordings which show this behavior very well. Tested on resolution 2560x1600.
This is the actual code which makes problems:
Code:
final ListGrid countryGrid = new ListGrid(); countryGrid.setDataSource(ServerCountryDS.getInstance()); countryGrid.setWidth100(); countryGrid.setHeight100(); countryGrid.setAutoFetchData(false); countryGrid.draw(); countryGrid.fetchData();
Code:
final ListGrid countryGrid = new ListGrid(); countryGrid.setDataSource(ServerCountryDS.getInstance()); countryGrid.setWidth100(); countryGrid.setHeight100(); countryGrid.setAutoFetchData(false); countryGrid.fetchData(); countryGrid.draw();
Teamviewer 7 recordings showing behavior of listgrid in Firefox
using CountryDS (xml file):
http://www.sendspace.com/file/ayfcgy
using ServerCountryDS (rest datasource):
http://www.sendspace.com/file/nwqm9d
Sample project for eclipse
http://www.sendspace.com/file/9g181p
SmartClient Version: SC_SNAPSHOT-2011-12-05/LGPL Development Only (built 2011-12-05)
Firefox 14.0.1 (Windows)
Comment