The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, I have a dropdown-tree with 4 levels. I want to have checkboxes only on the leaf nodes. And want to select one leaf node at a time i.e. after I selecting a leaf node If selecting a new one then, the previous one will be unselected. Although I've managed to show checkboxes at the leaf level following one of your solutions, thanks to you, but couldn't manage to select only a single leaf node at a time.
ILIndhumathy Loganathan Syncfusion Team April 5, 2021 11:29 AM UTC
Hi Mohammad,
Greetings from Syncfusion support.
We checked your requirement and prepared a Dropdown Tree sample in Vue to enable single selection while using checkbox for specific leaf nodes. You can use our select event to perform this customization. Please check the below code snippet.
select: function (args) {
var selection = this.$refs.treeObj.$el.ej2_instances[0].text;
if (selection != null) {
this.$refs.treeObj.clear();
this.$refs.treeObj.text = args.itemData.text;
}
},
You can find the sample demonstrating the solution from below link.