-1

How can I make case insensitive string filter in extjs. Following is the corresponding grid column.

var columns = [{
           dataIndex: 'name',
           header: 'NAME',
           style: 'border: none;',
           id: 'name',
           sortable : true,
           width: 141,
           filter: {
               type: 'string'
           }
       }
skmaran.nr.iras
  • 8,152
  • 28
  • 81
  • 116

1 Answers1

2

You need to specify the sortType on the field in the model: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.SortTypes-method-asUCString

Ext.define('MyModel', {
    fields: [{
        name: 'name',
        sortType: 'asUCString'
    }]
});
Evan Trimboli
  • 29,900
  • 6
  • 45
  • 66