Dec 08, 2011, 11:49 PM
[CLOSED] Filtering a store with nested data
I have a dataview hooked up to a store that accepts json in the following format:
[{
name: 'CategoryA',
items: [ {
name: 'Child1',
id: 'Child1',
icon: 'data.png'
}, {
name: 'Child12',
id: 'Child2',
icon: 'data.png'
}]
}, {
name: 'CategoryB',
items: [ {
name: 'Child3',
id: 'Child3',
icon: 'data.png'
}, {
name: 'Child4',
id: 'Child4',
icon: 'data.png'
}]
}]
How can I filter the store to show only CategoryB with Child4? Dataview.store.filter() only filters the top level and not the child level.
Last edited by Daniil; Dec 16, 2011 at 6:38 PM.
Reason: [CLOSED]