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

Switch stays enabled?

9 Answers 142 Views
Switch (Mobile)
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 04 Mar 2014, 09:08 AM
I have a problem with using the switch widget in. When I set the data-enable="false" in the switch and run the program. The switch can still be set on or off.  I thought the enable="false" option should disable that feature? I have tried running it on iphone with ios 7 and android 4.2 and they both have this problem. Can anyone help?

9 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 05 Mar 2014, 12:21 PM
Hello Stefan,

I have tested the functionality and it seems to be working as expected. Please check the following demo:

http://jsbin.com/kanat/1/edit

I have tested it both on iOS7 and Android KitKat devices.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Stefan
Top achievements
Rank 1
answered on 14 Mar 2014, 10:49 AM
I  tested the online demo and it works fine there, However when I started the project I got  Kendo UI Mobile v2013.2.1021  as version. (this is where the switch always stays enabled). When i created a new project which has  v2013.3.1507 as version and copied all the files from the old project. the switch button handles as expected, however my icons and modalviews wont work in the new version and I get the error : Object # <Object> has no method "appLevelNativseScrolling" from http://local/simulator/kendo/js/kendomobile.min.js:16.

So is it possible that the switch wont work in version 2013.2.1021 and how can I make it work? Alternatively I could port over the code to the newer version but how do i solve the icons, modalview and error problem?
0
Kiril Nikolov
Telerik team
answered on 17 Mar 2014, 08:27 AM
Hello Stefan,

There was an issue with the switch not changing its style when toggled in the 2013.2.1021 version, this issue has been resolved in the latest version, so you should stick with it. As for the error that you are getting:

Object # <Object> has no method "appLevelNativseScrolling" 

This does not seem to be related to the Kendo UI framework, as there is no such method implemented. But it looks like a typo made with calling the method, did you try with "appLevelNativeScrolling" (removing the "s" in the Native)?

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Stefan
Top achievements
Rank 1
answered on 17 Mar 2014, 08:31 AM
Hi Kiril,

It was a typo in my post but the error still stands with Object # <Object> has no method "appLevelNativeScrolling"  error
0
Kiril Nikolov
Telerik team
answered on 18 Mar 2014, 11:32 AM
Hello Stefan,

I am afraid that without the code where this error is thrown I am not able to tell you what exactly is the issue. Could you please provide us with a sample, where the issue is reproduced, so we can take a look at and advise you further?

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Stefan
Top achievements
Rank 1
answered on 18 Mar 2014, 03:06 PM
I have submitted a support ticked with the code attached.
0
Kiril Nikolov
Telerik team
answered on 20 Mar 2014, 08:22 AM
Hello Stefan,

Thank you very much for the provided information. 

The issue is fixed in the latest build, so please upgrade the project and let us know if the problem is fixed.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Christoph
Top achievements
Rank 2
answered on 24 Mar 2014, 04:44 PM
Hi all,
I also get the same error (# <Object> has no method "appLevelNativseScrolling") when using the predefined project template. So the fixes have not been rolled out?

Christoph
0
Kiril Nikolov
Telerik team
answered on 25 Mar 2014, 11:52 AM
Hi Christoph,

If you are talking about the predefined AppBuilder template, there is a detailed explanation about the issue in the following forum topic. Please check it out and if you have any questions, please contact us:

http://www.telerik.com/forums/object-object-has-no-method-'applevelnativescrolling'

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Switch (Mobile)
Asked by
Stefan
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Stefan
Top achievements
Rank 1
Christoph
Top achievements
Rank 2
Share this question
or