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

Filtering OData

2 Answers 192 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 20 Jan 2012, 07:10 PM
I'm using the inbuild function of the grid to do filtering via OData source.

When I try to filter a numeric value, I get this error from the odata service:

Operator 'eq' incompatible with operand types 'System.Int32' and 'System.String' at position 5.

Is there a way to configure the filter expression?

Thanks
Eric

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 23 Jan 2012, 09:20 AM
Hello Eric,

I assume you haven't defined schema/model for the DataSource. Please check the following demo for more details:
http://demos.kendoui.com/web/grid/remote-data.html

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Eric Schoenholzer
Top achievements
Rank 2
answered on 23 Jan 2012, 12:36 PM
Thanks, could be the problem.

Suggestion:
Why not implementing the $metadata operation for OData?
http://www.odata.org/developers/protocols/operations#Retrievingthemetadatadocument

So you could infer the schema.

Thanks

Eric
Tags
Data Source
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Eric Schoenholzer
Top achievements
Rank 2
Share this question
or