Hi Isomorphic Team,
We are using the ismorphic version : 6.1-p20170930
my current functionality uses SmartGWT + Spring Rest services.
We are using Google chrome browser latest version.
My application has a requirement to insert a new row above the selected row.
I have written the below code to achieve the same:
protected void insertAction() {
GWT.log("insertAction " + getCanEdit());
if (getCanEdit()) {
if (getSelectedRecord() == null) {
startEditingNew();
} else { // add the row at the selected index
final int index = getDataAsRecordList().indexOf(getSelectedRecord());
setRecords(getRecords());
Record record = new Record();
getRecordList().addAt(record, index);
startEditing(index);
newRowIndex = index;
}
}
}
Above code adds the row into DB but on UI the row is not displayed..
I need refresh the grid to see the newly inserted row.
Could you please suggest.
We are using the ismorphic version : 6.1-p20170930
my current functionality uses SmartGWT + Spring Rest services.
We are using Google chrome browser latest version.
My application has a requirement to insert a new row above the selected row.
I have written the below code to achieve the same:
protected void insertAction() {
GWT.log("insertAction " + getCanEdit());
if (getCanEdit()) {
if (getSelectedRecord() == null) {
startEditingNew();
} else { // add the row at the selected index
final int index = getDataAsRecordList().indexOf(getSelectedRecord());
setRecords(getRecords());
Record record = new Record();
getRecordList().addAt(record, index);
startEditing(index);
newRowIndex = index;
}
}
}
Above code adds the row into DB but on UI the row is not displayed..
I need refresh the grid to see the newly inserted row.
Could you please suggest.
Comment