I am kind a new to GWT and SmartGWT and I am in a mode of testing this technology to use in our company.
I just tested your code. Just changing the packages and also using ListGridRecord instead of TileRecord.
Everything seems to work well, but when editing a cell, instead of replacing the cell in the edited row of my ListGrid, it create a new one!
On the server side, the data is fine. And if I do a reload in the browser, the "duplicate" row is gone.
Any idea?
I set my datasource like this:
Code:
detailsModulesListGrid.setDataSource( new YourGwtRcpDataSource() ); ListGridField lModuleNameField = new ListGridField( "itemName" ); ListGridField lModuleVersionField = new ListGridField( "itemId" ); lModuleVersionField.setType( ListGridFieldType.INTEGER ); detailsModulesListGrid.setFields( lModuleNameField, lModuleVersionField ); detailsModulesListGrid.setAutoFetchData( true ); detailsModulesListGrid.setCanEdit( true ); detailsModulesListGrid.setEditEvent( ListGridEditEvent.DOUBLECLICK );
Note that using a client side only datasource, everything is working well.
Leave a comment: