New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent interface for configuring the NumericTextBox events.

Definition

Constructors

C#
public NumericTextBoxEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

Methods

Defines the handler of the Change client-side event. Fires when the NumericTextBox value is changed.

C#
public NumericTextBoxEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

NumericTextBoxEventBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Events(events =&gt; events.Change(@&lt;text&gt;
function(e) {
// Handle the Change event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the Change client-side event. Fires when the NumericTextBox value is changed.

C#
public NumericTextBoxEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Change event.

Returns:

NumericTextBoxEventBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Events(events =&gt; events.Change("onChange"))
)

Defines the inline handler of the KendoKeydown client-side event

C#
public virtual NumericTextBoxEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

NumericTextBoxEventBuilder

Defines the name of the JavaScript function that will handle the KendoKeydown client-side event.

C#
public virtual NumericTextBoxEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

NumericTextBoxEventBuilder

Defines the handler of the Spin client-side event. Fires when the NumericTextBox value is changed from the spin buttons.

C#
public NumericTextBoxEventBuilder Spin(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

NumericTextBoxEventBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Events(events =&gt; events.Spin(@&lt;text&gt;
function(e) {
// Handle the Spin event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the Spin client-side event. Fires when the NumericTextBox value is changed from the spin buttons.

C#
public NumericTextBoxEventBuilder Spin(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Spin event.

Returns:

NumericTextBoxEventBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Events(events =&gt; events.Spin("onSpin"))
)