Hi,
great work on the new release!
We changed to GWT 2.0 / smartGWT 2.0 yesterday. We have found an issue on a ListGrid, which switches datasources. There are, say, 5 datasources and 1 ListGrid. When the user chooses an option in a SelectItem, the ListGrid's dataSource is set to one of these 5, and fetchData is called:
On the previous version this works great, but in the new version it doesn't allways display the records. Is does show (in alternating style) the number of records, but they are all empty. This doesn't happen everytime. After the first problem the grid keeps having all kinds of different erronious behaviour like posting requests for the previous datasource, or showing data from the previous request. It logs an error in the console, which is:
any ideas?
For now, I have a workaround by removing the ListGrid, adding a new one and setting the datasource on that new one, but it's a lot slower, probably because of the dom-manipulation.
great work on the new release!
We changed to GWT 2.0 / smartGWT 2.0 yesterday. We have found an issue on a ListGrid, which switches datasources. There are, say, 5 datasources and 1 ListGrid. When the user chooses an option in a SelectItem, the ListGrid's dataSource is set to one of these 5, and fetchData is called:
Code:
public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
this.grid.setDataSource(this.dataSource);
this.grid.fetchData();
}
Code:
Uncaught JavaScript exception [_3 is undefined] in http://localhost:8888/sc/modules/ISC_Core.js, line 3355
For now, I have a workaround by removing the ListGrid, adding a new one and setting the datasource on that new one, but it's a lot slower, probably because of the dom-manipulation.
Comment