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

No how do I pass on or off to my form using the "kendo.mobile.ui.Switch"

1 Answer 25 Views
Switch (Mobile)
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 22 Mar 2017, 09:34 PM

Okay, been working with this one for about 20 mins and I'm not sure what's going.

I've got a kendo Switch which I enable like so on my page inside using an MVVM framework.

<input data-role="kendo.mobile.ui.Switch" id="mySwitch'" data-type="boolean'" data-name="showRecords'" data-checked="false" />

The switch renders find, but no matter if I have it on or off is just sends "on" to my form as a value.

 

How do I get it to send off please?

 

Philip

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 24 Mar 2017, 12:52 PM
Hello,

Here's a js fiddle from another forum thread, showing a working mvvm setup of the switch widget:
http://jsfiddle.net/krustev/GewUa/46/

Regards,
Bozhidar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Switch (Mobile)
Asked by
Philip
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or