PDA

View Full Version : [OPEN-1371] tabOut deSelects other rows in CheckboxSelectionModel when checkOnly=true



sean.zhou
28 Oct 2010, 1:04 PM
Hi,

We use Ext 3.2.1 with checkOnly=true on CheckboxSelectionModel in an EditorGridPanel. It worked great that the row selection is not changed when mouse clicking on the rows. However, after a cell is edited and user tab-out of the cell to another row, the other rows selected previously got de-selected. Same problem exists when user pressed enter key after editing a cell. Would you please take a look on that issue? Thanks.

Sean

jsakalos
28 Oct 2010, 5:16 PM
Yes, tabbing out of the currently edited record deselects all others and selects the currently edited record. The code responsible for this behavior lies in RowSelectionModel::onEditorKeyMethod:



// ....

if(newCell){
r = newCell[0];
c = newCell[1];

if(last.row != r){
this.selectRow(r); // *** highlight newly-selected cell and update selection
}

if(g.isEditor && g.editing){ // *** handle tabbing while editorgrid is in edit mode
ae = g.activeEditor;
if(ae && ae.field.triggerBlur){
// *** if activeEditor is a TriggerField, explicitly call its triggerBlur() method
ae.field.triggerBlur();
}
}
g.startEditing(r, c);
}


You can try to comment the line out to see what happens. Anyway, I'm moving this thread to bugs for the devel team to comment or fix it.

sean.zhou
28 Oct 2010, 8:58 PM
Would you mind to post the url of the bug for this issue?

jsakalos
29 Oct 2010, 3:35 AM
Url of the bug is url of this thread. It is now in Bugs forum that is scanned by the devel team.