Inline Grid filtering - Column bound to property object

4 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 24 Apr 2015 Link to this post

    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

  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 28 Apr 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 28 Apr 2015 in reply to Plamen Link to this post

    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

  5. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 29 Apr 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready