Hi, I would like to use a kendo switch inside a form: I' created a little example at:
https://stackblitz.com/edit/react-k3fw3s
I need to set the initial value programmatically.
So, I created a function switchSetOn (in the file MyUtils.js) to do this using jquery.
This function works well, because the switch correctly appears as ON, but if I click on it the first click does not work and the control remains ON (after a small movement): from subsequent clicks it works fine.
So, I think that the react control keep is value to false even if I set (via jquery) the aspect to true.
Is there a way to set the value correctly via jquery? (I don't want to use defaultChecked or checked property of the control)
Another problem is that, when I click on the submit button the value of the hidden input "checkbox" of the switch does not fall into the json (I can see only the value of the input "text"). Is there something I have to do to obtain the value?
Thank you