Hey,
I'm working on building a treeview dynamically based onClicked event for a menu item.
'
But, the problem is I'm not getting the image next to the node when I try to add it, what's the problem?'
'
function onClicked(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();
}
But, the problem is I'm not getting the image next to the node when I try to add it, what's the problem?'