Hybrid View

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    1
    Jiawei Yong is on a distinguished road

      1  

    Default Number of items in a List or Store?

    Number of items in a List or Store?


    Hi,

    I'm not sure if I missed it in the API documents, but is there any way I can retrieve the number of items in a list, or the number of items in the store associated with the list?

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    41
    Vote Rating
    0
    NMFord is on a distinguished road

      0  

    Default


    Try getCount()

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    1
    Jiawei Yong is on a distinguished road

      0  

    Default


    Thanks! Working fine now though I'm wondering how did I even miss that

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Lausanne, Switzerland
    Posts
    196
    Vote Rating
    1
    mcbl can only hope to improve

      0  

    Default


    But it's only available for a Store and will retrieve the load operation's number of records.

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
    tnedeles is on a distinguished road

      0  

    Default


    Hi,

    I am not using a store. I fill the list from within the controller, by inserting elements, as the following:
    myList.insert(0, {xtype: 'textfield', value: 'abc'});

    I tried getCount() and I got the result 0:
    console.log("Length of list is " + myList.getCount());

    Clearly, getCount() does not work for my example. What would you recommend me to use instead ?

    Thank you

Thread Participants: 3

Tags for this Thread

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