# Events

You can subscribe to the `Change` and `Spin` [NumericTextBox events](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/numerictextboxeventbuilder) and further customize the functionality of the component.

For a complete example on basic NumericTextBox events, refer to the [demo on using the events of the NumericTextBox](https://demos.telerik.com/aspnet-core/numerictextbox/events).

## Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

```Razor HtmlHelper
    @(Html.Kendo().NumericTextBox()
          .Name("numerictextbox")
          .Events(e => e
                .Change("numerictextbox_change")
                .Spin("numerictextbox_spin")
          )
    )
```

```Razor TagHelper
    <kendo-numerictextbox name="numerictextbox"
                      on-change="numerictextbox_change"
                      on-spin="numerictextbox_spin">
    </kendo-numerictextbox>
```

```JS script
<script>
    function numerictextbox_spin() {
        // Handle the spin event.
    }

    function numerictextbox_change() {
        // Handle the change event.
    }
</script>
```

## Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

```Razor HtmlHelper
    @(Html.Kendo().NumericTextBox()
        .Name("numerictextbox")
        .Events(e => e
            .Change(@<text>
                function() {
                    // Handle the change event inline.
                }
            </text>)
            .Spin(@<text>
                function() {
                    // Handle the spin event inline.
                }
            </text>)
        )
    )
```

## Next Steps

* [Using the NumericTextBox Events (Demo)](https://demos.telerik.com/aspnet-core/numerictextbox/events)

## See Also

* [Using the API of the NumericTextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/numerictextbox/api)
* [Known Limitations of the NumericTextBox HtmlHelper for ASP.NET Core](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/numerictextbox/limitations)
