PDA

View Full Version : [FIXED] Calling reconfigure on a grid with CheckBox model causes additional checkbox columns



Zoob
8 Nov 2011, 12:32 AM
REQUIRED INFORMATION

Ext version tested:

Ext 4.0.7
Ext 4.1-PR1
Browser versions tested against:

FF3.6
Description:

Calling reconfigure on a grid with CheckBox model causes additional checkbox columns
Steps to reproduce the problem:

Create a Grid with the Checkbox Selection Model
Call reconfigure on the grid
I've tested against the grid-plugin example
The result that was expected:

Reconfiguration should occur while retaining the checkbox column
The result that occurs instead:

An additional checkbox column is added per reconfigure call
HELPFUL INFORMATION

Screenshot or Video:

29108
Additional CSS used:

only default ext-all.css
Operating System:

WinXP

mitchellsimoens
8 Nov 2011, 1:03 PM
Looks like it is still happening in 4.1-PR1. Will get this reported!

youss.imzourh
7 Feb 2012, 5:23 AM
Hi,

An alternative is to call the reconfigure method with the parameter columns :



var columns = [
...
]

var grid = Ext.create('Ext.grid.Panel', {
...
columns: columns
...
});

...

grid.reconfigure(store, columns);


Hope it helps.

Cheers.