Hi Neil,
Thanks for using Syncfusion products,
We have analyzed your requirement (need Parent id, text, id as arguments in node select event).Currently in ‘nodeSelect’ event arguments we can get selected node’s value only. We have already logged this requirement as bug and a support incident has been created under your account to track the status of this requirement.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
For your convenience we have prepared the workaround solution to achieve your requirement.
In node select event we can get the current element as arguments. We can use this current element and get the required fields (Pid, id, text) using jQuery traversing.
Please find the below code snippet
[script]
function OnNodeClick(args)
{
var Pid =args.currentElement.parents("li").attr("id");
var id=args.currentElement.attr("id");
var text=args.currentElement[0].textContent;
alert("Parent id :" +Pid +" id :"+id+" text :"+text);
} |
Please use above code in your project to achieve your requirement until we fix the reported issue.
Regards,
Sasikala Nagarajan