dynamic,dojo,notify,dijit.tree,jsonreststore
Using jquery instead of dojo was the solution. I found that I could solve in a few hours of learning jquery all problems that occurred when using dojo. This is mostly due to the quality of the documentation of both libraries and also because dojo seems to have too many...
Looking at the source, it doesn't look as if dojo/store/Memory supports the before PutDirective. If you want this feature, I suspect you will have to submit a Dojo feature request, or patch/augment dojo/store/Memory to provide the function you require....
If you want to update the css for the selected node, you should just override the css like this: .claro .dijitTreeRowSelected { color: red } Here is a simple jsfiddle which will make the selected label red, and the hovered one green: http://jsfiddle.net/edchat/dox42qye/15/ ...