Hi,
I am creating a text input to create a new node (folder) using the custom renderer
onCustomRender: function(node) {
if(node.data.title == "New Folder") {
return "<span><input id='new-folder-text-input' type='text' autofocus onkeyup='updateNode(this.value, false);' placeholder='New Folder' class='dynatree-title' value='New Folder'></input><input id='new-folder-save' type='button' disabled='disabled' value='Save' onclick='updateNode(document.getElementById(\"new-folder-text-input\").value, true);' /></span>";
}
}
I am reloading children from the selected node (which is the parent node of the above new node) and reloading the children after successful ajax call in updateNode
using $("#wem-browse-folder").dynatree("getTree").getNodeByKey(_activeKey).reloadChildren();
However, I am not able to get rid of the textinput node on reloadChildren created using the custom render
Was wondering how to solve this? Any help would be appreciated.
Thanks,
David.