1. #61
    Touch Premium Member msinn's Avatar
    Join Date
    Jul 2009
    Location
    in front of my pc
    Posts
    280
    Vote Rating
    5
    msinn is on a distinguished road

      0  

    Default


    Quote Originally Posted by CliffM View Post
    turns out I just needed to modify the data I was returning. If the data has the columns 'id' and 'text' defined, it works. No need to use labelField.
    Quote Originally Posted by CliffM View Post
    I am trying to load a filter from a store, and it's almost working. The filter menu shows the labels from the store, but the values it sends to my php script are system-generated. (like ext-record-820)

    please forgive typos, if any. I am not able to copy and paste, as my work network is separate from our internet network.

    Code:
    var states_store = new Ext.data.JsonStore({
        autoDestroy: true,
        proxy: new Ext.data.HttpProxy({
            url: 'get_states.php',
            method: 'POST'
        }),
        root: 'states',
        fields: ['state']
    })
    
    var filters = new Ext.ux.grid.GridFilters({filters:[
        {type: 'list', dataIndex: 'STATE', store: states_store, labelfield: 'state'}
    ]})
    Using Ext 3.0.0 and GridFilters 0.2.8.

    What am I missing?

    How to do that when I have more comboboxes with stores in a grid?
    My problem is that I can render the filter for the combobox stores, but when I try to check an option and get the grid filtered it doesn't work. The filter works on other columns as datefield or textfield but not on the comboboxes with stores.

    Please, please take a look to my simplified showcase:
    https://entwicklung.pos-ition.net/te...ding/index.php

    More information about my problem you find in this thread(I found your thread later):
    http://www.extjs.com/forum/showthrea...843#post475843

    THX a LOT, Marius
    First I would like to thank you for your time and knowledge

    Win 7 Ext JS 4.1.3 IE(6-9), FF17

  2. #62
    Sencha User
    Join Date
    Sep 2008
    Posts
    38
    Vote Rating
    0
    zeruyo is on a distinguished road

      0  

    Default


    Quote Originally Posted by zeruyo View Post
    when I call clearFilters() method I expect that values in the various filter controls (textbox, calendar, etc...) got cleared too. Is there any way to accomplish this? I searched through the forum (2.x too) but I didn't find anything about this.
    Thanks.
    Found solution here

    Thanks

  3. #63
    Sencha User
    Join Date
    Dec 2010
    Posts
    1
    Vote Rating
    0
    ylzbzx is on a distinguished road

      0  

    Default


    Thanks,