Changing the kendo numeric filter format

后端 未结 8 1634
孤街浪徒
孤街浪徒 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:41

    On Kendo NumericTextBox, Format is used to format the content of the input when it's not focused. You have tu use Decimals du format the input when it's focused. For example here is a NumericTextbox (asp.net) showing always integer :

    @(Html.Kendo().NumericTextBox()
            .Name("Total")
            .Format("n0")
            .Decimals(0)
        )
    

    Hope it will help someone.

提交回复
热议问题