How can I force Kendo Grid to use a numeric filter on a column

c#, kendo-asp.net-mvc, kendo-grid, kendo-ui

Solution

The solution is to specify that the value is an `int` in the model - change the `DataSource` method as so:

.DataSource(dataSource => dataSource.Ajax()
    .PageSize(20)
    .Read(read => read.Action("Targets_Read", "Targets"))
    .Model(m => {
        m.Field<int>(t => t.Files.Count);
    })
)

Problem

Using the following code, Kendo Grid uses the string filter interface for `t.Files.Count` even though the type is an `int`. How can I force the grid to use the numeric filter UI instead? ``` @(Html.Kendo().Grid<GJW_Site.Web.Models.TargetsModel>() .Name("grid") .Columns(columns => { columns.Bound(t => t.ID).Width(80); columns.Bound(t => t.OrbitalPeriod); columns.Bound(t => t.Files.Count); }) .Sortable() .Filterable() .DataSource(dataSource => dataSource.Ajax() .PageSize(20) .Read(read => read.Action("Targets_Read", "Targets")) ) .Resizable(o => o.Columns(true)) .ColumnMenu() ) ``` Produces a filter menu for strings: I am using Kendo.MVC 2013.1.514.340

Original source