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.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar