I've implemented the new filter row, quite nice by the way, but I'm having some difficulty formatting a number type column.
There are 2 things I'd like to do:
1. Format the number with no decimal places like, format: "{0:n0}". This works for the data but not the filter row. After I tab off it adds a decimal and 2 trailing 0's
2. Remove the spinners in the number type column filters.
I've tried something like below but I can't get it to work.
filterable: {
cell: {
format: "{0:n0}",
template: noSpinner
}
}
...
function noSpinner() {
var g = $("#grid").data("kendoGrid");
var fRow = g.thead.find("tr[class=k-filter-row]")
// i dont know what to do here to remove the spinners
}
There are 2 things I'd like to do:
1. Format the number with no decimal places like, format: "{0:n0}". This works for the data but not the filter row. After I tab off it adds a decimal and 2 trailing 0's
2. Remove the spinners in the number type column filters.
I've tried something like below but I can't get it to work.
filterable: {
cell: {
format: "{0:n0}",
template: noSpinner
}
}
...
function noSpinner() {
var g = $("#grid").data("kendoGrid");
var fRow = g.thead.find("tr[class=k-filter-row]")
// i dont know what to do here to remove the spinners
}