Instead of using the Toggle button I would rather use a switch for a better visual representation.
If i add a template item as such:
items.Add().Template("<
input
type
=
'checkbox'
id
=
'check'
>");
and then I try to modify the attribute of the item using jquery as such, it fails (no error, it simply doesn't work):
$("#check").attr("checked", "checked");
but if i move the html markup out of the template and put it somewhere else on the page, it works perfectly fine. This also happens when i try to use:
$("#check").kendoSwitch();
If i move the checkbox out of the toolbar it works fine.
Is there a way to use the switch, inside the toolbar?