How do you get the parent tree node in the nodeClick JavaScript event? And, where is the documentation source for this information?
Here is my tree with the nodeClick client event:
@(Html.Infragistics().Tree() .ID("FilterTree") .Bindings(b1 => { b1 .ValueKey("Value") .TextKey("Text") .ImageUrlKey("Base64ImageUrl") .ChildDataProperty("ChildItems"); }) .DataSource(Model.TreeListItems) .DataBind() .ClientEvents(new Dictionary<string, string> { { "nodeClick", "FilterTreeNodeClicked" } }) .Render() )
Here is my JavaScipt event:
function FilterTreeNodeClicked(evt, ui) {
// This is NOT the tree node. Instead, it looks like a DOM element var ParentNode = $("#FilterTree").igTree("parentNode", ui.node.element);
// I need the parent for ui.node
}
Thank you for your post. I have read through several similar topics! However, your article gave me a very special impression, unlike other articles. I hope you continue to have valuable articles like this or more to share with everyone! stumble guys