Hi Yordan,
Greetings from Syncfusion support.
We have checked the reported issue by rendering TreeView with Template and Checkbox enabled. TreeView is rendered with checkbox and sample is working fine in our end. Please refer to the following code used in our end.
|
<SfTreeView TValue="EmployeeDetails" CssClass="custom" ShowCheckBox="true">
<TreeViewFieldsSettings TValue="EmployeeDetails" Id="EmployeeId" Text="EmployeeName" DataSource="@Employee" Expanded="Expanded" HasChildren="HasChild" IsChecked="Selected" ParentID="ParentId"></TreeViewFieldsSettings>
<TreeViewTemplates>
<NodeTemplate>
@{
var employee = ((context as EmployeeDetails));
<div class="ename">@((@context as EmployeeDetails).EmployeeName)</div>
<div class="ejob">@((@context as EmployeeDetails).Designation)</div>
}
</NodeTemplate>
</TreeViewTemplates>
</SfTreeView> |
We have attached sample for your reference in the following link
Template TreeView with Checkbox is rendered as shown below
Please check the above sample in your end and if the issue persists, kindly share us the following details to serve you better.
- Complete code snippet used in your sample.
- Issue occurs with specific browser or with all browsers?
- Syncfusion Blazor package version used in your project.
- If possible , modify the above sample to replicate the issue in our end.
Regards,
Keerthana.