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

Whats the minimum needed for "Switch"

3 Answers 10 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Veteran
sitefinitysteve asked on 19 Mar 2014, 05:03 PM
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

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 20 Mar 2014, 04:15 PM
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!
 
0
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 20 Mar 2014, 04:19 PM
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)...?



0
Petyo
Telerik team
answered on 24 Mar 2014, 07:54 AM
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!
 
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Veteran
Answers by
Alexander Valchev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Veteran
Petyo
Telerik team
Share this question
or