View Full Version : Automatic grid filtering

3 Jul 2014, 12:17 PM

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

3 Jul 2014, 12:30 PM
This seems to have done the trick

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