Hi Yordon,
We have checked your reported query with TreeView component. We would like to let you know that nodeChecked and nodeChecking events return only the default mapping field of the checked node. In TreeView component, by using its getTreeData method, you can fetch the value defined in the data source of TreeView component to achieve your expected requirement.
If you pass particular node id as argument for getTreeData method, then it will return the corresponding node data. Or else, the method return the entire datasource of TreeView component.
Refer the below code snippet.
public async Task nodechecking(NodeCheckEventArgs args)
{
// Particular node id
var data= args.Data[0].Id;
// To fetch the corresponding node from TreeView Datasource
var node_data = await this.tree.GetTreeData(args.Data[0].Id);
} |
Refer the below screenshot.
Refer the sample link below.
To know more about the TreeView component. Refer the below links.
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P