Skip to content

Latest commit

 

History

History
103 lines (65 loc) · 2.18 KB

numerictextbox.md

File metadata and controls

103 lines (65 loc) · 2.18 KB
title page_title description slug
NumericTextBox
NumericTextBox | Migrate from Telerik Extensions
Handle ASP.NET MVC server-side API for the Kendo UI NumericTextBox widget.
numerictextbox_migrationextensions_aspnetmvc

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

  • [Migrate the AutoComplete]({% slug autocomplete_migrationextensions_aspnetmvc %})
  • [Migrate the Calendar]({% slug calendar_migrationextensions_aspnetmvc %})
  • [Migrate the Chart]({% slug chart_migrationextensions_aspnetmvc %})

To see the articles on migrating Kendo UI controls from Telerik Extensions, browse the [Widgets folder]({% slug autocomplete_migrationextensions_aspnetmvc %}).