Hi Sencha,I am using a TreePanel where we show the records in the treepanel on the button submission. I want to get the number of records present in tree. I am unable to fetch this. My code below:
Code:
var QryInfoTreePanel = new Ext.tree.TreePanel({
autoHeight: true,
id: 'queryInfoTreePanel',
enableDD: false,
singleExpand: true,
dataUrl: '/Administration/AdhocQryInfo/AdhocQryInfoTree',
rootVisible: false,
root: { id: 'root', nodeType: 'async' },
title: 'Adhoc Query',
listeners: {
click: function (node, e) {
if (node.leaf) {
qryID = node.id;
if (qryID < 0) {
resetAll();
}
else {
GetAdhohQryInfoById(qryID);
//adhocQryParamStore.load({ params: { iQryId: 1} });
adhocQryParamStore.load();
} }
} }
});
and on the button clicking
Ext.getCmp('queryInfoTreePanel').getLoader().dataUrl = '/Administration/AdhocQryInfo/AdhocQryInfoTree?sQryTypeSd=' + qryTypeValue + '&sQryRptCategorySd=' + reportCategoryValue; Ext.getCmp('queryInfoTreePanel').getRootNode().reload();
I am able to see therecords in the tree but how i count the records. i am not getting the proper method for that.Please helpThanks in advance.