In extjs4.1: There are many way for store filtering . Some of code i give here Filtering by single field: store . filter ( 'eyeColor' , 'Brown' ); Alternatively, if filters are configured with an id , then existing filters store may be replaced by new filters having the same id . Filtering by single field: store . filter ( "email" , /\.com$/ ); Using multiple filters: store . filter ([ { property : "email" , value : /\.com$/ }, { filterFn : function ( item ) { return item . get ( "age" ) > 10 ; }} ]); Using Ext.util.Filter instances instead of config objects (note that we need to specify the root config option in this case): store . filter ([ Ext . create ( ' Ext.util.Filter ' , { property : "email" , value : /\.com$/ , root : 'data' }), Ext . create ( ' Ext.util.Filter ' , { filterFn : function ( item ) { return item . get ( &
Comments
Post a Comment