rangeslider.resize() is not a function

2 Answers 140 Views
Slider
Sven
Top achievements
Rank 1
Iron
Iron
Iron
Sven asked on 19 Nov 2021, 08:57 AM | edited on 19 Nov 2021, 08:58 AM

Like subject says - I build in a rangeslider. Now I want it drawn to "scale" => width: 780px ... but every attempt so far has failed 

I tried style= in the <div  it self, then I found you api description , so I build the exact same code from the api-description in my document.ready() function .. only to be greeted with the subject line "rs.resize() is not a function ...

As the remaining Kendo ui stuff is working and also the rangeslider does "everything else" .. conforms to the properties I set in the definition ... 
I'm at the moment without any clue what could lead to the described error message

 

Every help is welcome

my js-code for that matter 
$(document).ready(function () {
$("#rangeslider").kendoRangeSlider({ change: rangeSliderOnChange, slide: rangeSliderOnSlide, min: 0, max: 780, smallStep: 1, largeStep: 10, tickPlacement: "both", }); var rs = $("#rangeslider").getKendoRangeSlider(); rs.wrapper.css("width", "780px"); rs.resize();
});

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 23 Nov 2021, 11:29 AM

Hello, Sven,

Here is a small example based on the provided code snippet. You can see that it is working as expected. Could you please modify it so that I can observe the problem? Also, could you please share which Kendo version you are using?

Looking forward to your reply.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Sven
Top achievements
Rank 1
Iron
Iron
Iron
answered on 24 Nov 2021, 10:29 AM

Hello Martin,

no .. the example didnt help at all - I already mentioned that I used the sample code to build it.

Problem seemed to be that we used a really old version of kendo - libs. I found a good description and a js-fiddle to illustrate, got the kendo-libs that one used and now its working .. although - for some reason I can't move the 2 "knobs" with the mouse. I can click on a knob, then use keyboard-arrows to move it left/right then click the other one and do about the same ... 
Seems there's still code around messing with the mouse events somewhere

 

 

Martin
Telerik team
commented on 29 Nov 2021, 08:44 AM

As you correctly pointed out, the error is probably due to older Kendo version in which the resize method had not yet been implemented. Still, I will need to be able to observe the issue in order to confirm that. Kindly modify my example from previous reply to reproduce the problem so that I can further investigate.
Tags
Slider
Asked by
Sven
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Martin
Telerik team
Sven
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or