0
검도 슬라이더의 시작 값과 종료 값을 얻으려고합니다. 나는 보통 슬라이더가 아닌 범위 slider.For 예를 사용하고검도 슬라이더의 시작과 끝 값을 얻으십시오.
http://demos.kendoui.com/web/slider/events.html
, 즉 초기 슬라이더 값이 다음 사용자가 30로 슬라이드 (10)로 설정되어 가정 할 수 있습니다 후 나는 그 차이를 얻을 필요 슬라이더 위젯이 초기화 된 후에는 즉시 저장해야 초기 값을 얻기위한 API를 가지고 있지 않기 때문에 20
@(Html.Kendo().Slider()
.Name("VariableSlider")
.Min(0)
.Max(100)
.SmallStep(1)
.LargeStep(10)
//.Value(50)
.Events(events => events
.Change("VariableSliderChange"))
.HtmlAttributes(new { @class = "temperature", @style = "width:500px" }))
<script>
function VariableSliderChange(e) {
// get the difference between start and end values here.
}
</script>