New to Telerik UI for ASP.NET Core? Download free 30-day trial

Bind Checkboxes in the TreeList for ASP.NET MVC


Product TreeList for Progress® Telerik® UI for ASP.NET Core


How can I add a checkbox column to the TreeList which will set an initial checked or unchecked state of the checkboxes based on the model values?


Use the template method of the TreeList column.

columns.Add().Field(e => e.CheckBoxColumnField).Template(
        "#if(CheckBoxColumnField == true){#" +
            Html.Kendo().CheckBox().Name("name#:CheckBoxColumnField#").HtmlAttributes(new { @class = "CheckBoxColumnField" }).Checked(true).ToHtmlString() +
        "#}else{#" +
            Html.Kendo().CheckBox().Name("name#:CheckBoxColumnField#").HtmlAttributes(new { @class = "CheckBoxColumnField" }).ToHtmlString() +
In this article
Not finding the help you need? Improve this article