I have a listgrid that fills correctly, and the first column (ListGridField) is a boolean. It is either selected or not. When I add a new row, I want the first column to be automatically checked.
Any quick way to do that?
Thanks!
Any quick way to do that?
Code:
addNewDataButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event ) {
testSetField.setCanEdit(true);
testNameField.setCanEdit(true);
testGrid.startEditingNew();
ListGridRecord record = testGrid.getSelectedRecord();
record.setAttribute("selectedField", true);
}
});
Comment