Jun 29, 2009, 8:41 PM
Stop RowSelection From Toggling while focus remains in that row
I am using a grid with row level selection. Each time you work within each cell of that grid, the selection of the row is toggled on and off. I like row level selection because it gives the Add and Remove row buttons a target. Bascially, when working in a row i want to keep the selection focus (check box) on ... and it should be turned to unchecked only when you have left the row. Any help ... seems difficult because i can't seem to get the following to work.
<SelectionModel>
<ext:CheckboxSelectionModel SingleSelect="true" ID="CheckboxSelectionModel1" runat="server" Header="Remove" HideCheckAll="true" ColumnPosition="0">
<Listeners>
<RowDeselect Fn="RowDeselectHandler" />
</Listeners>
</ext:CheckboxSelectionModel>
</SelectionModel>
function RowDeselectHandler(selectionModel, index, record) {
selectionModel.clearSelections(); // <- should clear selection from all rows ... BUG: this does not clear the check box
selectionModel.selectRow(index); // re-assign selection to just this row
}