This is a migrated thread and some comments may be shown as answers.

Slider as an editor for the field

0 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rafael
Top achievements
Rank 1
Rafael asked on 14 Apr 2011, 10:51 AM
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; }


Tags
Grid
Asked by
Rafael
Top achievements
Rank 1
Share this question
or