PDA

View Full Version : default filter active but grid isn't filtering



PT_C
1 Aug 2017, 11:30 AM
I have an ExtJS 4.1.3 grid with a defaulted filter option selected but when the grid loads all of the grid items are showing up. Is there a better way to define a default option?



fiddle
(https://fiddle.sencha.com/#view/editor&fiddle/238v)

Code

{
text: 'Status',
width: 100,
dataIndex: 'TopicStateValue',
filter: {
active: true,
type: 'list',
value: 'Open/Current',
options: ['Open/Current', 'Archived/Closed', 'Hold']
}
}

PT_C
2 Aug 2017, 9:57 AM
Found a work around. This snippet after the store load did the trick.

gridStore.filter('TopicStateValue', 'Open/Current' );