Hello,
I added recordClickHandler on listGrid and on value. When I navigate between listgrid rows with tabs or arrows, recordClickHandler isn't invoked.
I set ArrowKeyAction("select");
According to javadoc of ListGrid.setArrowKeyAction, it should be working:
I am using smartGWT 2.1, Internet Explorer 8.0
Do you have a workaround? Any tip is appreciated.
thank you
I added recordClickHandler on listGrid and on value. When I navigate between listgrid rows with tabs or arrows, recordClickHandler isn't invoked.
I set ArrowKeyAction("select");
According to javadoc of ListGrid.setArrowKeyAction, it should be working:
"select": select the next row in the list (calls recordClick handler)
Code:
countryGrid = new ListGrid();
countryGrid.setCanEdit(true);
countryGrid.setEditEvent(ListGridEditEvent.CLICK);
countryGrid.setEditByCell(true);//only the edit cell becomes editable
countryGrid.setArrowKeyAction("select");
valueField = new ListGridField("value", I18NUtils.getLabel("Value"));
valueField.setRequired(true);
countryGrid.addRecordClickHandler(new RecordClickHandler() {
@Override
public void onRecordClick(RecordClickEvent event) {
SettingGridRecord record = (SettingGridRecord) event.getRecord();
valueField.setEditorType(record.getEditorType());
}
});
countryGrid.setFields(valueField);
thank you