kristoph
30 Dec 2009, 5:28 PM
The TreeGrid implementation in svn has a bug (or perhaps it's a feature) around line 37 in TreeGrid.js. Also present in 3.1 I would guess.
The code as implemented always replaces the createNode in the loader which means, if a custom createNode was implemented for some reason, it is discarded.
Instead the code should look something like this ...
else if ( l )
{
var _createNode = l.createNode;
l.createNode = function( attr )
{
if ( !attr.uiProvider )
{
attr.uiProvider = Ext.ux.tree.TreeGridNodeUI;
}
return _createNode.call( this, attr );
}
}
The code as implemented always replaces the createNode in the loader which means, if a custom createNode was implemented for some reason, it is discarded.
Instead the code should look something like this ...
else if ( l )
{
var _createNode = l.createNode;
l.createNode = function( attr )
{
if ( !attr.uiProvider )
{
attr.uiProvider = Ext.ux.tree.TreeGridNodeUI;
}
return _createNode.call( this, attr );
}
}