New to Kendo UI for jQuery? Download free 30-day trial

Formats

The NumericTextBox accepts only numeric entries and its specific format defines the conversion data type—for example, currency or percentage.

The following example demonstrates how to render a currency NumericTextBox.

 <input id="textbox">

 <script>
    $("#textbox").kendoNumericTextBox({
        format: "c2" // Define the currency format signified with the letter "c" and a two-digit precision.
    });
</script>

The following example demonstrates how to render a percentage NumericTextBox.

<input id="textbox">

 <script>
    $("#textbox").kendoNumericTextBox({
        format: "p", // Define the percentage format signified with the letter "p".
        value: 0.15 // 15 %
    });
</script>

See Also

In this article