O'Reilly logo

Learning Kendo UI Web Development by John Adams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning API methods

When interacting with the slider widgets, you must reference the JavaScript object through the data() method as usual:

// Kendo Slider Widget
var slider = $("#sliderId").data("kendoSlider");

// Kendo RangeSlider Widget
var rangeSlider = $("#rangeSliderId").data("kendoRangeSlider");

The enable and disable Methods

The slider widgets support methods for enabling and disabling the controls in the web page through the enable() and disable() methods. The syntax is the same for both slider widgets and range slider widgets, assuming you have the correct reference to the object through JavaScript.

// get a reference to the slider var slider = $("sliderId").data("kendoSlider"); // disable a slider slider.disable(); // enable a slider ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required