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

RangeSliderBuilder

Defines the fluent interface for configuring the RangeSlidercomponent.

Methods

Values(System.Nullable,System.Nullable)

Sets the value of the range slider.

Parameters

selectionStart - System.Nullable<T>
selectionEnd - System.Nullable<T>

Values(Kendo.Mvc.UI.Fluent.T[])

Parameters

range - T[]

Orientation(Kendo.Mvc.UI.SliderOrientation)

Sets orientation of the range slider.

Parameters

orientation - SliderOrientation

TickPlacement(Kendo.Mvc.UI.SliderTickPlacement)

Sets a value indicating how to display the tick marks on the range slider.

Parameters

tickPlacement - SliderTickPlacement

Min(Kendo.Mvc.UI.Fluent.T)

Parameters

value - T

Max(Kendo.Mvc.UI.Fluent.T)

Parameters

value - T

SmallStep(Kendo.Mvc.UI.Fluent.T)

Parameters

value - T

LargeStep(Kendo.Mvc.UI.Fluent.T)

Parameters

value - T

Tooltip(System.Boolean)

Display tooltip while drag.

Parameters

value - System.Boolean

Tooltip(System.Action)

Use it to configure tooltip while drag.

Parameters

action - System.Action<SliderTooltipBuilder>

Use builder to set different tooltip options.

Example


            @( Html.Kendo().Slider()
                       .Name("Slider")
                       .Tooltip(tooltip => tooltip
                           .Enable(true)
                           .Format("{0:P}")
                       );
            )

Events(System.Action)

Configures the client-side events.

Parameters

events - System.Action<RangeSliderEventBuilder>

The client events action.

Example


            @( Html.Kendo().RangeSlider()
                       .Name("RangeSlider")
                       .Events(events =>
                           events.OnChange("onChange"))
            )

LeftDragHandleTitle(System.String)

Sets the title of the slider draghandle.

Parameters

title - System.String

RightDragHandleTitle(System.String)

Sets the title of the slider draghandle.

Parameters

title - System.String

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?