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

Slider Dependency issue

1 Answer 153 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Pedro
Top achievements
Rank 1
Pedro asked on 19 Nov 2012, 10:33 AM
Hello,

I'm currently trying to use KendoUI to implement a simple slider in a survey for a client.
Therefore, I wouldn't require the 500+kb of JS from the kendo.web.min.js and I would like to integrate the element with the minimum required dependencies.

Based on your documentation below, the slider widget only requires 4-5 script files to work :
http://docs.kendoui.com/getting-started/javascript-dependencies#slider-and-rangeslider

I'm trying to integrate the slider widget on a blank page using the specified script files, but the drag and drop functionality doesn't work.
I always get the following issue : "TypeError: v is not a constructor" in the file "kendo.draganddrop.min.js"

Here is the html portion :
<input id="slider" class="balSlider" value="0" />
 
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/kendo.core.min.js"></script>
<script type="text/javascript" src="js/kendo.binder.min.js"></script>
<script type="text/javascript" src="js/kendo.draganddrop.min.js"></script>
<script type="text/javascript" src="js/kendo.slider.min.js"></script>
<script type="text/javascript">
  (function () {
    //wait for DOM availability
    $(document).ready(function () {
      //create slider
      $("#slider").kendoSlider();
    });
  })();
</script>
I also attached a zip archive with the POC source.

Is there a missing dependency in your file list?


Thank you.

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 20 Nov 2012, 09:51 AM
Hi Pedro,

Here is the updated javascript dependencies topic.

You need the following files: 

jquery-1.8.2.js
kendo.core.js
kendo.userevents.js
kendo.binder.js (if using MVVM)
kendo.draganddrop.js
kendo.slider.js

I have update your points.

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!
Tags
Slider
Asked by
Pedro
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or