I am trying to implement a feature in my dojo tree which will allow me to create a folder manually under any folder of the dijit tree hierarchy. On right click on any folder in tree --> Add a new folder(prompt) shows up --> a new folder name is entered and clicked ok should create a new folder under that folder. I tried to implement it in the below way but it is not working*(CODE 1)* for the tree structure generated. Not sure where I am making a mistake. I also tried to create an individual module to create a folder under a tree and it is working.*(CODE 2)* Strange fact, I have added my code as below, please suggest how can I rectify this issue.
I am also fine even if I have to use dojo 1.9.1 for additional functionality. But at the moment I am not able to get the reason for which my code isnt creating a new folder, it is only opening the folder prompt but it is not putting any items created to the store.