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

Kendo filter operators do not match column type

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Georgescu
Top achievements
Rank 1
Georgescu asked on 15 Jul 2013, 02:53 PM
Hello,

I am using Kendo MVC Wrappers and ran into a problem.
I have bound a column to the grid using:
column.Bound(c => c.ActiveBaseQuote.Amount);
And though Amount is of type decimal? the grid is showing on it's column the filter for string type(the one with the operators: Contains, Starts with,Ends with...etc) instead of showing me the numeric type filter(the one with Greater than, etc). Naturally, filtering with StartsWith will result in an error( the grid is AJAX() bound)

The problem seems to be only with a property on the child of the object model.When i use this:
column.Bound(c => c.Amount);
The filter operator and textbox recognize the column as numeric and display the appropiate filter.

I appreciate the help,
Claudiu

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 17 Jul 2013, 12:42 PM
Hi Georgescu,

Please note that the Grid DataSource schema currently supports only flat models out-of-the-box and I would suggest to flatter your model.

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Georgescu
Top achievements
Rank 1
answered on 17 Jul 2013, 01:04 PM
Thank you for your answer. I feared you might say that:(. Hoped it was only a bug.
Tags
Grid
Asked by
Georgescu
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Georgescu
Top achievements
Rank 1
Share this question
or