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

slider handler (knob) is not extending to the min and max setted

7 Answers 54 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 01 Feb 2012, 06:05 PM
I am initializing the slider through javascript object as below:
########################################################################################
<span id="range_display_price_footer"></span>)
<div id="slider_price_footer" class="slider"><input /><input /></div>
<script>
var obj_slider = {
slObj: [],
slider_initialise: function(type,min_val,max_val,small_step_val,large_step_val,tick_placement){
//alert(small_step_val);
var temp_obj = "fixed_"+type;
temp_obj = $("#"+type).kendoRangeSlider(
{
min: min_val,
max: max_val,
selectionStart: min_val,
selectionEnd: max_val,
                        smallStep: small_step_val,
largeStep: large_step_val,
tickPlacement: tick_placement,
tooltip:false,
enabled: true,
slide: this.sliderOnSlide,
change:this.sliderOnChange
}).data("kendoRangeSlider");
obj_slider.slObj[type] = temp_obj;

},
sliderOnSlide: function(e){
var slider_id = document.getElementById('range_display_price_footer');
slider_id.innerHTML = e.values.toString().replace(",", " - ");
},
sliderOnChange: function(e){
alert(obj_slider.slObj['slider_estimated_val_footer'].values());
}
};
obj_slider.slider_initialise('slider_price_footer',100,10000000,10000,10000,'both');
</script>
##############################################################################################
if i call slider_initialise function with min=0 and max=1000000
BUT if change the min value other than zero like 100 as shown in code above, both of the slider handler (knob) shrink together on the left side.

Please help me how do i fix this.
Thank you!

7 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Germanov
Telerik team
answered on 02 Feb 2012, 09:40 AM
Hello Banjamin Alev,

Thank you for contacting us.

Could you please tell me what is the smallStep of the slider?

Kind regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Benjamin
Top achievements
Rank 1
answered on 02 Feb 2012, 11:56 PM
Hi Hristo Germanov,

smallStep
 = 10000;

i am initializing the slider by calling function as:
obj_slider.slider_initialise('slider_price_footer',100,10000000,10000,10000,'both'); 
where
4th parameter =  smallStep = 10000 

Thanks!
0
Hristo Germanov
Telerik team
answered on 03 Feb 2012, 09:31 AM
Hi Benjamin,

I confirm that this is a bug and I glad to inform you that it is already fixed. The fix will be include with the next official release of Kendo UI.

I have update your telerik points.

All the best,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Benjamin
Top achievements
Rank 1
answered on 03 Feb 2012, 07:01 PM
Hristo,
Sometimes bugs like this can be fixed with an alteration of two or three lines of the core code. Could we self-heal this code ourselves prior to the next release? This fix is critical to a production page I am currently working on.  OR, can we have access to this pre-release version that includes the fix?  If the official release is forthcoming in the next few days, we will be fine, but if it is in weeks or months, it will cripple this page.
0
Hristo Germanov
Telerik team
answered on 08 Feb 2012, 08:56 AM
Hello Benjamin,

I am glad to inform you that the bug fix is included in SP1 of Kendo UI. Can you update to SP1 and please tell me if you have any problems with the slider.

Greetings,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Benjamin
Top achievements
Rank 1
answered on 08 Feb 2012, 05:52 PM

These are the current releases available to download. 

  1. 2011.3.1407 0 (Feb 7, 2012)
  2. 2011.3.1407 0 (Nov 29, 2011)
  3. 2011.2.1007 BETA2 (Oct 7, 2011)

Is the Feb 7th release actually SP1?  The Version Notes list the following changes to the slider: "Fixed: Multiple slider tooltips can be visualized in iPad"

0
Hristo Germanov
Telerik team
answered on 09 Feb 2012, 09:22 AM
Hi Benjamin,

2011.3.1407 0 (Feb 7, 2012)  is the SP1 of the Kendo UI and the release notes for this bug are missing. Please excuse us for the inconvenience.

All the best,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Slider
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Benjamin
Top achievements
Rank 1
Share this question
or