SmartGWT 3.0 nighty build
We are using a ListGrid in our SmartGWT app. We have a bug that we haven't yet managed to fix.
Here the steps to reproduce:
1. I create a new empty ListGrid
2. Then I set up the fields using the method setFields(myFields) and the records using setData(myRecords) (we don't use the Datasource, because we use only GWT RPC protocol to communicate with the server).
3. I add a new row using the method startEditingNew(), I edit it and get the data (using getRecords()) to save it using an RPC service.
4. I clear the grid with setData(new ListGridRecord[0]) and setFields(new ListGridFields[0]) to obtain an empty grid.
5. Then in the same grid we load new fields and records (the fields may be different)
-> the row added in step 3 remains in the grid!!!
It seems the record is still in the component even though it's cleared using setData(new ListGridRecord[0])
I've tried with the endEditing() method but without success.
How can we correct that?
We are using a ListGrid in our SmartGWT app. We have a bug that we haven't yet managed to fix.
Here the steps to reproduce:
1. I create a new empty ListGrid
2. Then I set up the fields using the method setFields(myFields) and the records using setData(myRecords) (we don't use the Datasource, because we use only GWT RPC protocol to communicate with the server).
3. I add a new row using the method startEditingNew(), I edit it and get the data (using getRecords()) to save it using an RPC service.
4. I clear the grid with setData(new ListGridRecord[0]) and setFields(new ListGridFields[0]) to obtain an empty grid.
5. Then in the same grid we load new fields and records (the fields may be different)
-> the row added in step 3 remains in the grid!!!
It seems the record is still in the component even though it's cleared using setData(new ListGridRecord[0])
I've tried with the endEditing() method but without success.
How can we correct that?
Comment