Changing the kendo numeric filter format

后端 未结 8 1630
孤街浪徒
孤街浪徒 2021-02-09 12:16

I am applying custom paging and sorting in the kendo grid. For one of my column I am getting a numeric text box. When I insert the value in numeric text box it is integer, but a

8条回答
  •  被撕碎了的回忆
    2021-02-09 12:44

    Set the filter column as

    column.filterable = {
        ui: numberFilter,
        cell: {
            template: numberFilter,
        }
    };
    
    function numberFilter(args) {
        var element = args instanceof jQuery ? args : args.element;
        element.kendoNumericTextBox({
            format: "n0"
        });
    }

提交回复
热议问题