Posted 10 Apr 2015 Link to this post
Posted 14 Apr 2015 Link to this post
Hello Bob,
You can set format on the filterable on the column like this:
field:
"YourField"
,
filterable: {
ui:
function
(element) {
element.kendoNumericTextBox({
format:
"n0"
});
}
Posted 14 Apr 2015 in reply to Kiril Nikolov Link to this post
Posted 15 Apr 2015 Link to this post
It is practically the same:
.Filterable(f => f.UI(
"myfilter"
));
<script>
myfilter(element) {
</script>
Posted 15 Apr 2015 in reply to Kiril Nikolov Link to this post
Posted 17 Apr 2015 Link to this post
It will not work for the filter row. If you are using the filter row then use the following approach:
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.filterable.cell.template
Posted 17 Apr 2015 in reply to Kiril Nikolov Link to this post
Posted 21 Apr 2015 Link to this post
columns.Bound(p => p.Freight).Width(250).Filterable(ftb => ftb.Cell(cell => cell.Operator("gte").Template("foo")))
Where "foo" is the function, behind the template.
Regards,
Telerik
Posted 21 Apr 2015 in reply to Kiril Nikolov Link to this post
function gridFilterIntegerNumericTextbox(args) {
args.element.kendoNumericTextBox({
format: "n0",
decimals: 0,
Posted 21 Jul 2020 in reply to Bob Link to this post
Posted 22 Jul 2020 Link to this post
Hi Deepti,
As the last reply in this thread is from 2015 and may be outdated, can you specify what functionality do you want to implement for the Grid component?
What 'complete code snippet' do you need?
Regards, Petar Progress Telerik