PDA

View Full Version : [4.0.2] regression - tree checkNode should be boolean



christophe.geiser
15 Jun 2011, 2:01 AM
this (http://www.sencha.com/forum/showthread.php?134140-FIXED-EXTJSIV-2009-tree-check-node-should-be-boolean-(4.0.1)) is a bug (again)
C.

christophe.geiser
20 Oct 2011, 11:43 PM
and again in 4.0.7

christophe.geiser
25 Feb 2012, 7:45 AM
This problem is still present in B3.
C.

christophe.geiser
5 Apr 2012, 7:50 AM
still present under 4.1 RC2, we should have (in decorate node) :
this.applyFields(modelClass, [
{name: 'parentId', type: idType, defaultValue: null},
{name: 'index', type: 'int', defaultValue: null, persist: false},
{name: 'depth', type: 'int', defaultValue: 0, persist: false},
{name: 'expanded', type: 'bool', defaultValue: false, persist: false},
{name: 'expandable', type: 'bool', defaultValue: true, persist: false},
{name: 'checked', type: 'bool', defaultValue: null, persist: false, useNull : true},
{name: 'leaf', type: 'bool', defaultValue: false},
{name: 'cls', type: 'string', defaultValue: null, persist: false},
{name: 'iconCls', type: 'string', defaultValue: null, persist: false},
{name: 'icon', type: 'string', defaultValue: null, persist: false},
{name: 'root', type: 'boolean', defaultValue: false, persist: false},
{name: 'isLast', type: 'boolean', defaultValue: false, persist: false},
{name: 'isFirst', type: 'boolean', defaultValue: false, persist: false},
{name: 'allowDrop', type: 'boolean', defaultValue: true, persist: false},
{name: 'allowDrag', type: 'boolean', defaultValue: true, persist: false},
{name: 'loaded', type: 'boolean', defaultValue: false, persist: false},
{name: 'loading', type: 'boolean', defaultValue: false, persist: false},
{name: 'href', type: 'string', defaultValue: null, persist: false},
{name: 'hrefTarget', type: 'string', defaultValue: null, persist: false},
{name: 'qtip', type: 'string', defaultValue: null, persist: false},
{name: 'qtitle', type: 'string', defaultValue: null, persist: false},
{name: 'children', type: 'auto', defaultValue: null, persist: false}
]);
C.

christophe.geiser
30 May 2012, 11:28 PM
This is still a problem in 4.1.1.RC1

NodeInterface config for 'checked' field should be
{name: 'checked', type: 'bool', defaultValue: null, persist: false, useNull : true},
otherwise, xml data are incorrectly interpreted:

<checked>false</checked> -> checked: true

Thanks for taking this into account in the next release
Cheers,
C.

christophe.geiser
12 Jul 2012, 2:24 AM
Still present in 4.1.1
C.