PDA

View Full Version : checkbox default value



rkim
25 Jan 2012, 10:57 AM
The main value of a checkbox is a boolean, indicating whether or not the checkbox is checked. The following values will check the checkbox:

true
'true'
'1'
'on'
Above doesn't seem to work


{
id : 'complexity',
name : 'complexity',
xtype:"checkbox",
value: "1"
}

tvanzoelen
26 Jan 2012, 2:21 AM
it works with setValue but in the config it conflicts with the checked property wich is set default on false.

I think in the config the checked property is leading.

kabum
9 Jun 2012, 10:47 AM
But then the documentation is wrong.

Either it's a bug or the documentation should be adapted. ;)