1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    28
    Vote Rating
    1
    PKK is on a distinguished road

      0  

    Default With addFilters() only the first one gets checked (4.1.0 and 4.1.1 rc 2)

    With addFilters() only the first one gets checked (4.1.0 and 4.1.1 rc 2)


    When I load filters with addFilters() method, only the first one in array is checked in column menu, everything after this only gets the value inserted but the filter checkbox is left unchecked.

    Additionally, if I load gt and lt values of a numeric field separately, only the lt value is displayed at all.

    Is there a way to manually check the filter checkboxes?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    How are you adding the filters?

    Code:
    { // button
        text: 'FILTER',
        handler: function() {
     
            var myfilters= [{ // add additional filters here
                type: 'numeric',
                dataIndex: 'price',
                value: {gt: 50}
            }];
     
            grid.filters.addFilters(myfilters);
        }
    }
    Regards,
    Scott

Thread Participants: 1