How comes this is displaying a checkbox? This is an ASP.NET CORE app. I do have the mobile CSS included (not sure if that is required)
Here is the column and template. It simply renders as a checkbox.
columns.Bound("").ClientTemplateId("switchTemplate");
<script id="switchTemplate" type="text/x-kendo-template">
<text>
@(Html.Kendo().Switch()
.Name("switch#=Id#")
.Checked(true)
.ToClientTemplate()
)
</text>
</script>
Hi Jordan,
Is it possible that your scripts are outdated? I've tested a similar configuration and it appears to work as expected, please check the following repl:
- https://netcorerepl.telerik.com/GdEvuwEW32JvhnYl46
Hi,
Could you please share your entire configuration with us? Including all event handlers.
In the meantime, you could try to use ClientTemplate instead as follows:
.ClientTemplate( @(Html.Kendo().Switch() .Name("switch#=Id#") .Checked(true) .ToClientTemplate() ).ToClientTemplate().Value )