Threaded View

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    6
    Vote Rating
    0
    zalol is on a distinguished road

      0  

    Default Answered: How to get data from GridPanel

    Answered: How to get data from GridPanel


    Hi All,


    I am trying to to get the data from GridPanel. I tried to use grid.getSelections(), but FireBug is complaining that it is not a function.

    I am new to EXTJS so if anyone knows how to solve this, please help.


    Thanks.

    Zalol.

    Update:
    Apologies. Looks like I made a post in EXTJS 4. Can you please move it from here. I am using EXTJS 3.4
    Last edited by zalol; 17 Aug 2011 at 5:35 PM. Reason: Wrong section

  2. if you only want an array of all data you can use
    Code:
    grid.getStore().data.items
    http://docs.sencha.com/ext-js/4-0/#/...-property-data

    if you want to search for a specific record(s), you can usee
    Code:
    grid.getStore().data.filter(propertyKey, valueToSearchFor);
    http://docs.sencha.com/ext-js/4-0/#/api/Ext.util.MixedCollection-method-filter

    h
    ope that helps.

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