Hello,
I'm reading some datasets from a database and use the values to fill a grid - and on the other hand fill a small form.
The form contains among others a rangeslider. After a quick Google search I was pointed to the Telerik Forums.
So now I do it with the following code-section
var rangeslider = $("#rangeslider").data("kendoRangeSlider");
var rangeValues = [currentDataItem.MinPosition, currentDataItem.MaxPosition];
rangeslider.setOptions({
min: 0,
max: currentDataItem.MaxPositionMeter,
smallStep: 1,
largeStep: 10,
tickPlacement: "both"
});
rangeslider.value(rangeValues);
My problem is :
exemplary section of the data-grid
0, 704, 800
48, 752, 800
96, 800, 800
the first 2 numbers "serve" value-array and 800 as the max-parameter.
First 2 lines get displayed correctly, but the 3rd row behaves wierdly. The selection start-marker is displayed correctly, but whatever data-row was displayed at first, determines where the selection-end marker of the rangeslider is drawn, so it doesn't "move" - and the selection-range is displayed with correct length - but as the selection-end marker is not at the correct position the selection suddenly goes beyond the selection-start marker.
Is there anything I can do to prevent this weird behavior? Is it a problem when the value for selection-end is equal to max?
For reference I include a screenshot of the rangeslider drawn when going from data-row 2 to row 3
The min-value is always 0 for all 3 data-rows
I have a slider on a page set to a min/max of 0 and 100. The min/max of this slider is variable and changes depending on what a user has selected in a dropdownlist. For example, when the user selects an item in the dropdownlist, I change the slider's min/max value of 10 and 50 using setOptions.
var slider = $("#slider").data("kendoSlider");slider.resize();
This seems to work as the slider updates to the properties I set in setOptions. But after I do this, it doesn't consistently let me jump to a value in the slider. For example, if I try to click the slider line at 40, the slider won't move to it. Sometimes it will, sometimes it won't. If I drag the slider ball to a number it works fine, if I user the increase/decrease arrow buttons it works fine. But clicking on a number in the slider bar does not work.
- This jumping to a number in the slider works fine before I dynamically change the properties using "setOptions".
- This problem occurs regardless of what property in the slider I change using "setOptions".
Any ideas? Thanks.