I have a treeview where I use the method NodeChecking="nodeChecking".
I had this working properly where in the child nodes i could select multiple nodes by checking them. Now If i check the checkbox in a node and select another node it unchecks that node and only has 1 selected in the entire tree at a time.
In 18.3.0.40 this worked fine, i wetn to .42 and it stopped working.
I noticed as soon as I put this event in <TreeViewEvents TValue="TreeViewItem" NodeSelected="nodeSelect" NodeChecking="nodeChecking"></TreeViewEvents>
It stops working. I take it out , it works... I need an event when i select the checkbox to call.. and now its breaking the functionality i need.
<SfTreeView @ref="FDITree" TValue="TreeViewItem" AutoCheck="false" ShowCheckBox="true" AllowDragAndDrop="false" LoadOnDemand="true" CheckedNodes="CheckedNodes" CssClass="CustomTree">
<TreeViewEvents TValue="TreeViewItem" NodeSelected="nodeSelect" NodeChecking="nodeChecking"></TreeViewEvents>
<TreeViewFieldsSettings HtmlAttributes="htmlAttributes" TValue="TreeViewItem" Id="Id" DataSource="@TreeViewItems" Text="FolderName" ParentID="ParentId" HasChildren="HasSubFolders"></TreeViewFieldsSettings>
<TreeViewTemplates TValue="TreeViewItem">
<NodeTemplate>
@{
if ((@context as TreeViewItem).FolderName.ToLower() == "deleted items")
{
<div style="font-size: 13px; font-weight: bold;">@((@context as TreeViewItem).FolderName)</div>
}
else
{
<div style="font-size: 12px;">@((@context as TreeViewItem).FolderName)</div>
}
}
</NodeTemplate>
</TreeViewTemplates>
</SfTreeView>
Attachment:
TreeviewCheckedBoxes_d29e3eae.zip