I have a simple folder treeview which load just fine. However when I go to expand a node, it fires the nodeClick event for some reason. Here is a snippet of the code:
$("#foldertreeView").ejTreeView({
enableAnimation: true,
enablePersistence: false,
fields: {
dataSource: e.result,
id: "FolderId",
parentId: "ParentFolderId",
text: "FolderName",
hasChild: "IsParent",
imageUrl: $Url.resolve("~/Content/icons/folder.png")
},
template: "#treeTemplate",
nodeClick: function (e) {
console.log(e);
}
I'm trying to allow the user to expand a folder and choose a child folder by selecting it. After selection, the user is able to navigate to that folder. I'm using ASP.Net Core MVC FYI.
Thanks,
Derral