View Full Version : Data flow from setRoot to implicit store to renderer in tree grid

28 Jul 2012, 11:58 AM
I have a tree panel set up in grid mode with one column, declared explicitly as a treecolumn:

columns: [ {
xtype: 'treecolumn',
text: 'text',
dataIndex: 'text',
renderer: function (value, metaData, record, row, col, store, gridView) {
if (record.data.languageNode) {
return '<span class="bl-lang-node">' + value + '</span>';
} else {
return '<span class="' + record.data.tdCls + '">' + value + '</span>';
return value;

The nodes of the tree I pass to setRoot includes several properties that are not declared as columns; they are there to provide data to the renderer.

Unfortunately, my properties are not there on the record.data. It's as it this is a copy made that only contains those attributes relevant to the declared columns or something.

What's going on?