2016-07-28 56 views
0

我有kendo网格,它使用odata过滤。问题是我需要过滤集合内的集合和集合中的属性。是否有可能过滤OData内收集和收集的属性

查询:CaseStudies/ExamRecords/any(d:contains(d/LevelName,'11'))

CaseStudies - 收集

ExamRecords - 收集

LevelName - 财产

我不熟悉的OData过滤。所以问题是如何纠正配置请求来过滤此查询?

因为现在我有以下错误信息:The parent value for a property access of a property 'ExamRecords' is not a single value. Property access can only be applied to a single value.

编辑1

我使用$扩大,这个问题不是“如何显示集合”,这个问题关于“如何筛选收藏内藏物品“。

+0

你需要使用$ expand来获取子集合。请参阅http://stackoverflow.com/questions/9171310/odata-filter-with-items-in-a-expand –

+0

@MurrayFoxcroft我正在使用$ expand,这个问题是另一个 – BorHunter

回答