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

WebAPI 2 Lambda Filter for Grid

1 Answer 152 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ozzie
Top achievements
Rank 1
Ozzie asked on 23 Sep 2016, 02:11 PM

I have my odata feed working correctly, however I am running into issues when trying to filter on a child property. The way the API is setup it expects that you run a lambda expression against the endpoint to filter on child properties. I've requested help from support but keep getting answers which don't apply or that are vague.

 

My URL looks like this:

https://datafeed.rogcoinc.com/odata/POHeaders/?$top=20&$filter=POLines/any(c:%20c/Item/itemNumber%20eq%20%27552867497%27)

Basically select top 20 from POHeaders where any POLine.ItemNumber = 55286749

 

Someone has to have ran into this before...is there a solution or did we buy a $1400 product that won't address our needs??

 

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 27 Sep 2016, 01:27 PM

Hello Ozzie,

The supported filter operators are listed in the filter.operator help article. Unfortunately there is no operator which will apply the "any" lambda operator to the generated URL. 

The transport.parameterMap is the function which converts the request parameters to a format suitable for the remote service. By default, the data source sends the parameters using jQuery's conventions.

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Data Source
Asked by
Ozzie
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or