Whats the minimum needed for "Switch"

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 19 Mar 2014 Link to this post

    I really love the switch instead of checkboxes, and now that I can use it on regular web I intend to just stop using checkboxes everywhere :)

    ...what's the minimum I need to include on the page to get it to work?  Like I don't want to push down the entire mobile script.

    Thanks,
    Steve
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 20 Mar 2014 Link to this post

    Hi Steve,

    You need to include the widget's script and all of its dependencies. Currently the documentation is not updated but we will do that in a short period of time.
    Specifically for the switch you need:

    1. jquery.js
    2. kendo.core.js
    3. kendo.fx.js
    4. kendo.userevents.js
    5. kendo.mobile.switch.js

    In case you are already using a combined script such as kendo.web.js you need to include only kendo.mobile.switch.js. Core, fx and userevents are used by many widgets so you most probably already have them.

    In addition to the javascript files you should include the corresponding .css files as described in this help topic.

    Regards,
    Alexander Valchev
    Telerik
     
    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
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 20 Mar 2014 in reply to Alexander Valchev Link to this post

    AWESOME, so just "kendo.mobile.switch.js" is all...

    Hopefully I can extract just the CSS for that widget too

    Anywho, question on maybe a bug with it...I reported it in the beta, but it's still here.  Is this something that just exists in your demos, or happens on actual devices?

    http://demos.telerik.com/kendo-ui/web/mobile/switch.html

    So you can see when you "toggle" the item, every switch below it "jumps".  It's WAY more pronouced on safari mobile (or dolphin)...?



  5. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 24 Mar 2014 Link to this post

    Hello Steve,

    I can confirm that we are aware of the problem and it is logged for further investigation in our bug tracker. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready