Hi,
I'm using smartGWT version 2.4 and want to add data to ListGrid's resultSet in following sample:
In code above I recieve following JavaScript error: this.addAt is not a function
Removing operations also thows error, when I create ResutSet manually the errors occur.
What do I wrong? How should be data in result set changed?
Thanks.
Michal
I'm using smartGWT version 2.4 and want to add data to ListGrid's resultSet in following sample:
Code:
final ResultSet rs = new ResultSet(); rs.setDataSource(getDataSource()); rs.setFetchMode(FetchMode.PAGED); rs.getRange(0, 10); rs.addDataArrivedHandler(new DataArrivedHandler() { @Override public void onDataArrived(DataArrivedEvent event) { ListGridRecord operationRow = new ListGridRecord(); rs.add(operationRow); setData(rs); } });
Removing operations also thows error, when I create ResutSet manually the errors occur.
What do I wrong? How should be data in result set changed?
Thanks.
Michal
Comment