This question is locked. New answers and comments are not allowed.
I want to use slider as an editor for a grid'd field.
It's rendered in edit mode, but I fail to bind field's value to slider's value
Please advise what am I missing? or reply is it possible in general?
Slider code:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<int>" %>
<%= Html.Telerik().Slider<int>().Name("PerformanceSlider1")
.Min(0).Max(100)
.SmallStep(20).LargeStep(20)
.TickPlacement(SliderTickPlacement.BottomRight)
.Orientation(SliderOrientation.Vertical)
.ShowButtons(false)
.Value(Model)
.HtmlAttributes(new { id = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty) + "_wrapper" ,Style = "height: 100px" })
%>
property in Model :
[UIHint("PerformanceSlider1")]
public int mJanuary { get; set; }
It's rendered in edit mode, but I fail to bind field's value to slider's value
Please advise what am I missing? or reply is it possible in general?
Slider code:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<int>" %>
<%= Html.Telerik().Slider<int>().Name("PerformanceSlider1")
.Min(0).Max(100)
.SmallStep(20).LargeStep(20)
.TickPlacement(SliderTickPlacement.BottomRight)
.Orientation(SliderOrientation.Vertical)
.ShowButtons(false)
.Value(Model)
.HtmlAttributes(new { id = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty) + "_wrapper" ,Style = "height: 100px" })
%>
[UIHint("PerformanceSlider1")]
public int mJanuary { get; set; }