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

Inline Grid filtering - Column bound to property object

3 Answers 304 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 24 Apr 2015, 12:11 PM

Hi,

I am trying to filter on CategoryID inside the Grid. I am getting an exception that can be shown in this example: 

http://dojo.telerik.com/@bhaidar/ipoYU/2

 

Even the filter is not reflecting the fact that the field is a number but assuming it's a string.

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 28 Apr 2015, 05:48 AM
Hi Bilal,

In such case you can set the filterable mode of Grid that is responsible for the way filtering is done. Here is the sample that worked correctly at my side.

Hope this will help you solve the issue.

Regards,
Plamen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bilal
Top achievements
Rank 2
answered on 28 Apr 2015, 05:54 AM

Hi,

In fact I changed the code since I posted to add a new column to the DataSource. I now changed back the code to what it was before.

http://dojo.telerik.com/@bhaidar/UmobE

 

The problem now is, the CategoryID column is showing the filter operations for a string not for an int. How to make it show those of integer?

Thanks

0
Plamen
Telerik team
answered on 29 Apr 2015, 08:23 AM
Hello Bilal,

Unfortunately there is no other way to convert the type of the column or filter dynamically so you will have to use the approach from the previous reply.

Regards,
Plamen
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
Bilal
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Bilal
Top achievements
Rank 2
Share this question
or