Slider Dependency issue

2 posts, 0 answers
  1. Pedro
    Pedro avatar
    1 posts
    Member since:
    Nov 2012

    Posted 19 Nov 2012 Link to this post

    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.
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 20 Nov 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top