PDA

View Full Version : [UNKNOWN][3.0.3] CheckboxSelectionModel loses selection when clicking on selected row



nrevelle
15 Dec 2009, 12:23 PM
Ext version tested:

Ext 3.0.3


Adapter used:

ext


css used:

only default ext-all.css




Browser versions tested against:

IE7
FF3 (firebug installed)


Operating System:

WinXP Pro


Description:

When using Ext.grid.CheckboxSelectionModel and selecting multiples rows, the selection is lost if one of the selected rows is clicked again. Ext 2.x responds correctly (leaving selection as is). Please note that when using FireFox I found different results while using ext-all.js and ext-all-debug.js!! ext-all-debug works as desired (leaving selection as is) while ext-all loses the selection. In IE7 both lose the selection.




Steps to reproduce the problem:

Using /ext-3.0.3/examples/grid/array-grid.html



// create the Grid
var selections = new Ext.grid.CheckboxSelectionModel();
var grid = new Ext.grid.GridPanel({
store: store,
sm:selections,
columns: [
selections,
{id:'company',header: 'Company', width: 160, sortable: true, dataIndex: 'company'},
{header: 'Price', width: 75, sortable: true, renderer: 'usMoney', dataIndex: 'price'},
{header: 'Change', width: 75, sortable: true, renderer: change, dataIndex: 'change'},
{header: '% Change', width: 75, sortable: true, renderer: pctChange, dataIndex: 'pctChange'},
{header: 'Last Updated', width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
],
stripeRows: true,
autoExpandColumn: 'company',
height: 350,
width: 600,
title: 'Array Grid',
// config options for stateful behavior
stateful: true,
stateId: 'grid'
});



Debugging already done:

none


Possible fix:

not provided