Good afternoon,
I need some help with this control, the treeview, the event "nodeClicked" work perfectly in the first level of the tree, but I cannot make it work on second level or a level beyond that (3,4,5, etc), the event just doesnt trigger dont know why
Probably I'm missing something, can you help me with this please?
Here is my code
<ejs-treeview id="listdata" showCheckBox="true" nodeClicked="nodeChecked">
<e-treeview-fields dataSource="ViewBag.treeCatList" isChecked="isChecked" id="id" parentId="pid" text="name" hasChildren="hasChild"></e-treeview-fields>
</ejs-treeview>
function nodeChecked(args) {
var checkedNode = [args.node];
if (args.event.target.classList.contains('e-fullrow') || args.event.key == "Enter") {
var getNodeDetails = this.getNodeData(args.node);
if (getNodeDetails.isChecked == 'true') {
this.uncheckAll(checkedNode);
$("div[data-s1='" + getNodeDetails.id + "']").css("display", "none");
} else {
this.checkAll(checkedNode);
$("div[data-s1='" + getNodeDetails.id + "']").css("display", "block");
}
}
}
----
Thanks for your hard work