New to Telerik UI for ASP.NET Core? Download free 30-day trial

SliderEventBuilder

Methods

Change(System.String)

Fires when the slider value changes as a result of selecting a new value with the drag handle, buttons or keyboard.

For more information see Change event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Slider()
                        .Name("Slider")
                        .Events(events => events.Change("change"))
            )

Change(System.Func)

Fires when the slider value changes as a result of selecting a new value with the drag handle, buttons or keyboard.

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Slider()
                       .Name("Slider")
                       .Events(events => events.Change(@<text>
                           function(e) {
                           // Handle the Change event inline.
                           }
                           </text>)
                        )
            )

Slide(System.String)

Fires when the user drags the drag handle to a new position.

For more information see Slide event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Slider()
                        .Name("Slider")
                        .Events(events => events.Slide("slide"))
            )

Slide(System.Func)

Fires when the user drags the drag handle to a new position.

For more information see Slide event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Slider()
                       .Name("Slider")
                       .Events(events => events.Slide(@<text>
                           function(e) {
                           // Handle the Slide event inline.
                           }
                           </text>)
                        )
            )

In this article
Not finding the help you need?