Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    listGrid - rowClickHandler isnt invoked by keyboard navigation

    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:
    "select": select the next row in the list (calls recordClick handler)
    I am using smartGWT 2.1, Internet Explorer 8.0


    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);
    Do you have a workaround? Any tip is appreciated.
    thank you
Working...
X