Results 1 to 2 of 2

Thread: Automatic grid filtering

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    119
    Answers
    4

    Default Answered: Automatic grid filtering

    Hello

    I saw a bunch of examples showing how to add the possibility to filter records in a grid, but not exactly what I'm looking for. These examples allow the user to do it themselves, but I'd rather have it set arbitrarily.

    Say, I have two grids using the same store.

    One grid should show the record of the store whose value (enabled) is 1, and the other grid should show the records of the same store whose "enabled" field is 0.

    Is this possible ? Using 4.2.1

  2. This seems to have done the trick

    Code:
    features: [        
    {                    
    ftype: 'filters',                        
    local: true,                        
    filters: [ {                            
    dataIndex: 'enabled',                                
    value: '1'                        
    }]                 
    }]

  3. #2
    Sencha User
    Join Date
    Jul 2010
    Posts
    119
    Answers
    4

    Default

    This seems to have done the trick

    Code:
    features: [        
    {                    
    ftype: 'filters',                        
    local: true,                        
    filters: [ {                            
    dataIndex: 'enabled',                                
    value: '1'                        
    }]                 
    }]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •