I've got this grid:
And a button to start editing a new record.
A delete icon appears to the right of the row. The delete icon do not remove the pending new record if I regret adding the row.
I also attempted to get control of the click with a RemoveRecordClickHandler, but it does not fire up.
How can i delete a not saved (new record) from the grid?
SmartClient Version: v9.0p_2013-10-01/PowerEdition Deployment (built 2013-10-01)
Firefox 23.0.1
<smartgwt.version>4.0-p20131001</smartgwt.version>
Code:
testgrid = new ListGrid(); testgrid.setDataSource(mDataSource); testgrid.setCanEdit(true); testgrid.setCanRemoveRecords(true); testgrid.setAutoSaveEdits(false);
Code:
testgrid.startEditingNew()
I also attempted to get control of the click with a RemoveRecordClickHandler, but it does not fire up.
How can i delete a not saved (new record) from the grid?
SmartClient Version: v9.0p_2013-10-01/PowerEdition Deployment (built 2013-10-01)
Firefox 23.0.1
<smartgwt.version>4.0-p20131001</smartgwt.version>
Comment