this.tpl = new Roo.Template({
html : '<div class="'+cls+'-item '+cls+'-item-{cn:this.isEmpty}">{' + this.displayField + '}</div>',
isEmpty: function (value, allValues) {
+ Roo.log(value);
var dl = typeof(value.data) != 'undefined' ? value.data.total : value.length; ///json is a nested response..
return dl ? 'has-children' : 'no-children'
}