I have a ListGrid with a canEditCell() method override specified. I also have the following attributes set.
grid.setEditOnFocus(true);
grid.setEnterKeyEditAction(EnterKeyEditAction.NEXTCELL);
grid.setRowEndEditAction(RowEndEditAction.NEXT);
If I click on a row, the first editable cell is opened for editing so I know my canEditCell() method is working correctly. However, there are a few issues I can't seem to resolve.
1) When I click on a row, the editable cells open for editing which is as expected, but the cursor is not positioned in the first one ready for editing. Pressing Tab once moves the cursor to the first editable cell. How can I do this without having to press Tab.
2) After editing the value in the first editable cell in the first row, Tab advances to the next column in the same record, even if it is not editable. I have to continue to Tab past all of the non-editable fields to advance to the next row. How can I have the cursor advance to the next editable field automatically (even when that is in the next row)?
3) I find that pressing Enter is effectively the same as Tab. It advances to the next field (editable or not). But after progressing past any non-editable cells in the current row, it advances to the next row and ALL cells are shown as editable in that row (except for those that have canEdit="false" at the datasource level). If I click on the next row instead of tabbing or Entering to get there, only the editable fields are opened for editing so I'm sure my canEditCell() logic is correct. But if I advance to the next row by pressing Enter or Tabbing past the remaining non-editable fields in the current row, all fields on the next row allow editing.
grid.setEditOnFocus(true);
grid.setEnterKeyEditAction(EnterKeyEditAction.NEXTCELL);
grid.setRowEndEditAction(RowEndEditAction.NEXT);
If I click on a row, the first editable cell is opened for editing so I know my canEditCell() method is working correctly. However, there are a few issues I can't seem to resolve.
1) When I click on a row, the editable cells open for editing which is as expected, but the cursor is not positioned in the first one ready for editing. Pressing Tab once moves the cursor to the first editable cell. How can I do this without having to press Tab.
2) After editing the value in the first editable cell in the first row, Tab advances to the next column in the same record, even if it is not editable. I have to continue to Tab past all of the non-editable fields to advance to the next row. How can I have the cursor advance to the next editable field automatically (even when that is in the next row)?
3) I find that pressing Enter is effectively the same as Tab. It advances to the next field (editable or not). But after progressing past any non-editable cells in the current row, it advances to the next row and ALL cells are shown as editable in that row (except for those that have canEdit="false" at the datasource level). If I click on the next row instead of tabbing or Entering to get there, only the editable fields are opened for editing so I'm sure my canEditCell() logic is correct. But if I advance to the next row by pressing Enter or Tabbing past the remaining non-editable fields in the current row, all fields on the next row allow editing.
Comment