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

Grid Filtering on Decimal Column

2 Answers 195 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 04 Jan 2018, 02:15 AM

For anyone who can help - I'm having an issue with the grid's ability to filter on a field that is of the type decimal. 

Here's what my filter looks like:

restFilter.filters.push({ field: "OrderNumber", operator: "eq", value: searchValue });

Error: Message"The binary operator Equal is not defined for the types 'System.Decimal' and 'System.String'."string

Not sure what to do, any ideas?

Thanks!

Craig

 

 

2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 04 Jan 2018, 12:11 PM
Hi Craig,

Similar error to the one you are seeing have been reported in the EntityFrameworkCore repository. If you are using EntityFramework Core please update to the latest version and see how the behavior changes. 

An alternative approach would be to change the type of the OrderNumber field to something else - e.g. long.


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Craig
Top achievements
Rank 1
answered on 04 Jan 2018, 08:46 PM
Thank you Viktor! That upgrade for EF Core worked like a charm. Appreciate the help and the awesome turnaround time. Thanks again, Craig
Tags
Grid
Asked by
Craig
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Craig
Top achievements
Rank 1
Share this question
or