I cannot find any examples / documentation on how to format the column filtering input for Core ASP.net.
For example I have a column which is called ID. It is filterable but I want it formatted so that :
1 - It does not have the spinner
2 - After entering a value it does not reformat it from Integer to Decimal with a thousands separator. For example 1234 become 1,234.00 The current code I have is:
@(Html.Kendo().Grid<CIPHRChecks.Models.Order>()
.Name("Grid")
.HtmlAttributes(new { @class = "ChecksGrid" })
.Columns(columns =>
{
columns.Bound(o => o.Id).Title("ID").Format("{0}").Width(200).Filterable(f => f.Cell(cell => cell.ShowOperators(false)));
columns.Bound(o => o.OrderDate).Title("Order Date").Format("{0:dd/MM/yyyy}").Width(80);
columns.Bound(o => o.Source.Name).Title("Source").Width(80).Filterable(ftb => ftb.Multi(true).Search(true));
columns.Bound(o => o.OrderStatus.Description).Title("Status").Width(200);
columns.Bound(o => o.Service.Name).Title("Service").Width(200);
columns.Bound(o => o.SourcePersonReference).Title("Reference").Width(120).Filterable(f => f.Multi(false).Cell(cell => cell.ShowOperators(false)));
columns.Bound(o => o.SourcePersonDescriptor).Title("Descriptor").Width(200).Filterable(f => f.Multi(false).Cell(cell => cell.ShowOperators(false)));
})
.Pageable(p =>
{
p.PageSizes(new[] { 15, 25, 50 });
})
.Sortable(sortable => sortable
.SortMode(GridSortMode.MultipleColumn))
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read", "Home")
)
.PageSize(15)
)
)