Hi,
I Want to use a ListGrid (com.smartgwt.client.widgets.grid.ListGrid) with one ListGridField (com.smartgwt.client.widgets.grid.ListGridField)
ListGrid myListGrid = new ListGrid();
myListGrid.setCanRemoveRecords(true);
ListGridField keyField = new ListGridField("key", "Key");
setFields(keyField);
How should I change the ListGrid class, to be able to control the removing of a record? I've already tried to override the removeData method like this:
@Override
public void removeData(Record record) {
// my pre-remove code goes here
super.removeData(record);
}
But it seems like that this method is not invoked when the user press the remove icon.
Can someone help me please?
I Want to use a ListGrid (com.smartgwt.client.widgets.grid.ListGrid) with one ListGridField (com.smartgwt.client.widgets.grid.ListGridField)
ListGrid myListGrid = new ListGrid();
myListGrid.setCanRemoveRecords(true);
ListGridField keyField = new ListGridField("key", "Key");
setFields(keyField);
How should I change the ListGrid class, to be able to control the removing of a record? I've already tried to override the removeData method like this:
@Override
public void removeData(Record record) {
// my pre-remove code goes here
super.removeData(record);
}
But it seems like that this method is not invoked when the user press the remove icon.
Can someone help me please?
Comment