NumericTextBox Migration
This article demonstrates the ASP.NET MVC server-side API for the Kendo UI NumericTextBox widget.
Server-Side API
IncrementStep
Html.Telerik().NumericTextBox().IncrementStep(1)
Html.Kendo().NumericTextBox().Step(1)
Min Value
Html.Telerik().NumericTextBox().MinValue(1)
Html.Kendo().NumericTextBox().Min(1)
Max Value
Html.Telerik().NumericTextBox().MaxValue(1)
Html.Kendo().NumericTextBox().Max(1)
Empty Message
Html.Telerik().NumericTextBox().EmptyMessage(“Enter”)
Html.Kendo().NumericTextBox().Placeholder(“Enter”)
ButtonTitleUp and ButtonTitleDown
Not implemented.
DecimalDigits
Html.Telerik().NumericTextBox().DecimalDigits(3)
Html.Kendo().NumericTextBox().Decimals(3)
The NumberGroupSize
, NumberGroupSeparator
, NegativePatternIndex
, DecimalSeparator
, and CurrencySymbol
are not implemented in Kendo UI. Use the Format()
and Culture()
methods instead to achieve the same result.
Client-Side API
Events
None of the events has the On
prefix anymore.
None of the widgets features the OnLoad
event anymore. Use the $(document).ready()
instead.
Enable and Disable
var datePicker = $("#DatePicker").data("tTextBox");
datePicker.disable();
var datePicker = $("#datepicker").data("kendoNumericTextBox");
datePicker.enable(false);
See Also
To see the articles on migrating Kendo UI controls from Telerik Extensions, browse the Widgets folder.