I am having the exact same problem, i have created a number of custom buttons and items to add to both the context menus of the tree and grid however after a refresh of the file explorer, either through re naming/deleting an item none of these custom buttons fire the events. I have tried adding the handlers back in using the example above but the tree view is attached server side and i havent been able to find any documentation on on here about accessing the trees context menu to attempt to attach it client side. below is the code im currently using:
and an example of the server side code for adding one of these custom buttons
hope you can help, its been driving me crazy!
James