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

Basic implementation using MVC extension methods

The following code sample illustrates how to instantiate these same sliders by using the ASP.NET MVC extension methods. I have only included the actual slider widgets, not the full HTML page.

<div id="sliders"> <h2 id="slidersLabel">Slider Widgets</h2> @(Html.Kendo().Slider().Name("verticalSlider") .HtmlAttributes(new { id = "verticalSlider" }) .Min(-10) .Max(20) .Orientation(SliderOrientation.Vertical) .Value(5) .SmallStep(2) .LargeStep(10) .TickPlacement(SliderTickPlacement.None) .Tooltip(tt => tt.Format("{0}"))) @(Html.Kendo().Slider().Name("horizontalSlider") .HtmlAttributes(new { id = "horizontalSlider" }) .Min(0) .Max(20) .Orientation(SliderOrientation.Horizontal) .Value(7) .SmallStep(1) .LargeStep(5) ...

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