1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Vote Rating
    0
    pawan_chand is on a distinguished road

      0  

    Default How to count the number or records present in the TreePanel

    How to count the number or records present in the TreePanel


    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.
    Last edited by sword-it; 26 Jul 2012 at 3:16 AM. Reason: put your sample code in proper place

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi