RangeSliderBuilder
Methods
Values(System.Nullable,System.Nullable)
Sets the value of the RangeSlider.
Parameters
selectionStart - System.Nullable<T>
The value for the start of the range.
selectionEnd - System.Nullable<T>
The value for the end of the range.
Example
@( Html.Kendo().RangeSlider()
.Name("rangeslider")
.Values(2, 9)
)
Values(Kendo.Mvc.UI.Fluent.T[])
Parameters
range - T[]
Orientation(Kendo.Mvc.UI.SliderOrientation)
Sets the orientation of the range slider.
Parameters
orientation - SliderOrientation
The orientation value.
Example
@( Html.Kendo().RangeSlider()
.Name("rangeslider")
.Orientation(SliderOrientation.Horizontal)
)
TickPlacement(Kendo.Mvc.UI.SliderTickPlacement)
Sets a value indicating how to display the tick marks on the range slider.
Parameters
tickPlacement - SliderTickPlacement
The tick placement value.
Example
@( Html.Kendo().RangeSlider()
.Name("rangeslider")
.TickPlacement(SliderTickPlacement.TopLeft)
)
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
The boolean value that enables or disables the tooltip.
Example
@( Html.Kendo().RangeSlider()
.Name("rangeslider")
.Tooltip(false)
)
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().RangeSlider()
.Name("rangeslider")
.Tooltip(tooltip => tooltip
.Enabled(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.Change("onChange"))
)
LeftDragHandleTitle(System.String)
Sets the title of the slider left draghandle.
Parameters
title - System.String
The boolean value that enables or disables the tooltip.
Example
@( Html.Kendo().RangeSlider()
.Name("rangeslider")
.LeftDragHandleTitle("Decrease")
)
RightDragHandleTitle(System.String)
Sets the title of the slider right draghandle.
Parameters
title - System.String
The boolean value that enables or disables the tooltip.
Example
@( Html.Kendo().RangeSlider()
.Name("rangeslider")
.RightDragHandleTitle("Increase")
)
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
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>
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
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();
)
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.