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

2 posts, 0 answers
  1. Philip
    Philip avatar
    8 posts
    Member since:
    Mar 2017

    Posted 22 Mar Link to this post

    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

  2. Bozhidar
    Admin
    Bozhidar avatar
    1142 posts

    Posted 24 Mar Link to this post

    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.
Back to Top