I encountered an issue with the function I have defined for the menu item "delete" when right-clicking on any folder in the tree hierarchy to delete a folder. Upon clicking, I received the error message "Store is null or not an object error in dojo"
Can someone advise me on how to resolve this error? Is there something incorrect in my function provided below?
<ul dojoType="dijit.Menu" id="tree_menu" style="display: none;">
<li dojoType="dijit.MenuItem" data-dojo-props="disabled: false,
onClick: function (evt){
store.deleteById(selectedItemId);
resetEditor();
}",>Delete project</li></ul>
Tree Structure
- Main Project 1
Sub Project 1_1
Sub Project 1_2
* sub Project 1_3
+ Main Project 2 -
Main Project 3
Sub Project 3_1 -
Sub Project 3_2
Sub Project 3_2_1