I have a ListGrid that may be empty when it is first displayed and the user wants to see an empty row, ready for editing. I've tried adding a draw handler like this, but it does nothing. Is there another event that I can hook into to start editing on the new record?
Code:
grid.addDrawHandler(new DrawHandler() { @Override public void onDraw(DrawEvent event) { if (grid.getDataAsRecordList().isEmpty()) grid.startEditingNew(); } });
Comment