Hello, I'm currently working on creating a dynamic treeview that is based on the onClick event of a menu item.
function onClick(sender, eventArgs) {
var treeView = $find("<%= RadTreeView1.ClientID %>");
var selectedNode = treeView.get_selectedNode();
var node = new Telerik.Web.UI.RadTreeNode();
var parent = treeView.get_selectedNode();
node.Image= "~/Images/Folder-Add-icon.png";
parent.get_nodes().add(node);
treeView.commitChanges();
}
However, I am encountering an issue where the image does not appear next to the added node. What could be causing this problem?