This is a migrated thread and some comments may be shown as answers.

How do i filter a grouped datasource on items collection

2 Answers 78 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 25 May 2016, 11:58 PM

I have a grouped datasource.  The datasource appears to only let me filter by the "value" / grouped item.  How do I filter on properties such as name that are in the grouped items, "items" collection?

 

 

2 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 26 May 2016, 12:56 AM

More details

I populate datasource

categories.push({ parentNode : d.parentNode, node: d.node, identity: d.identity, key: d.key, value : d.value, categories : []});
I set datasource and group
dataSource = new kendo.data.DataSource({data: categories); dataSource.group({ field: "value" });
I then want to filter by node but the only option to filter appears to be the grouped value

0
Patrick
Top achievements
Rank 1
answered on 26 May 2016, 09:58 PM
I was able to work around this by creating a hierarchical dataset instead of a grouped dataset.
Tags
Data Source
Asked by
Patrick
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Share this question
or