Before version 2019.2 I used MobileSwitch for checkboxes and when I want to clear a form I did this:
1.
_form.reset();
2.
$(_form).find(
"[type=checkbox]"
).each(
function
() {
3.
$(
"#"
+
this
.id).data(
"kendoMobileSwitch"
).refresh();
4.
})
Now, using Switch, I've changed line 3 to
$(
"#"
+
this
.id).data(
"kendoSwitch"
).refresh();
but that didn't work.
How can I achieve the same with new Switch?