View Full Version : [UNKNOWN][3.1] checkboxgroup setValue() bug when using an array of boolean

26 Dec 2009, 6:14 PM
Ext version tested:

Ext 3.1

Adapter used:


css used:

only default ext-all.css

Browser versions tested against:

FF3.5.6 (firebug 1.4.5 installed)

Operating System:

Linux, Fedora 12


setValue() restore checkboxgroup item in wrong order when columns set to greater
than 1. For example if we set columns to 3 and have 5 items and we checked 2 items: column 1 row 1 and column 2 row 1, when we load the field with an array of boolean the result: column 1 row 1 and column 1 row 2 checked.

Test Case:

// checkboxgroup definition
xtype: 'checkboxgroup',
fieldLabel: 'Nyeri dada (boleh isi lebih dari satu pilihan)',
name: 'sign_nyeridada',
itemCls: 'x-check-group-alt',
columns: 3,
items: [
{boxLabel: 'Kanan', name: 'sign_nyeridada_kanan'},
{boxLabel: 'Kiri', name: 'sign_nyeridada_kiri'},
{boxLabel: 'Menembus ke punggung', name: 'sign_nyeridada_punggung'},
{boxLabel: 'Menjalar ke lengan', name: 'sign_nyeridada_lengan'},
{boxLabel: 'Tidak', name: 'sign_nyeridada_tidak'}

Steps to reproduce the problem:

check on sign_nyeridada_kanan and sign_nyeridada_kiri, then submit the form

The result that was expected:

when firing load action, with data format: sign_nyeridada: [true, true, false, false, false] sign_nyeridada_kanan and sign_nyeridada_kiri will be checked

The result that occurs instead:

sign_nyeridada_kanan and sign_nyeridada_lengan checked instead

Debugging already done:


Possible fix:

not provided