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

Grid Contains Filter with OData v4

3 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Veteran
Ryan asked on 05 Aug 2014, 10:42 AM
Hello, 

What is easiest way to get the contains filter working with a web service that uses odata v4?
It seems that web services using odata v4 no longer acknowledge the 'substringof' function and want the ' contains' function. This wouldn't be that big of deal however the parameters are reversed as well making it a bit more trickier than simple substitution.

Examples:
Contains (fails)
http://localhost:1486/odata/BillOfMaterials(2)/BillOfMaterialsItems?%24format=json&%24top=10&%24filter=substringof('xYz'%2CWorkUnitCode)&%24count=true

What it needs to be for the contains function to work 
http://localhost:1486/odata/BillOfMaterials(2)/BillOfMaterialsItems?%24format=json&%24top=10&%24filter=contains(WorkUnitCode%2C'xYz')&%24count=true

3 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
Veteran
answered on 05 Aug 2014, 11:05 AM
Just put it on stack as well.  Incase anyone wants the points. Just vote up the Q too pls. 

http://stackoverflow.com/questions/25137239/odata-v4-working-with-kendoui-grid-contains-filter
0
Ryan
Top achievements
Rank 1
Veteran
answered on 05 Aug 2014, 02:43 PM
[quote]Ryan said:Just put it on stack as well.  Incase anyone wants the points. Just vote up the Q too pls. 

http://stackoverflow.com/questions/25137239/odata-v4-working-with-kendoui-grid-contains-filter[/quote]

Answered on Stack Overflow. 
0
Atanas Korchev
Telerik team
answered on 07 Aug 2014, 10:48 AM
Hi Ryan,

The Kendo DataSource currently supports only OData v2. You may consider voting here.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Veteran
Answers by
Ryan
Top achievements
Rank 1
Veteran
Atanas Korchev
Telerik team
Share this question
or