Hi! It's hard to tell from your code example what is exactly going wrong. Here are some tips that can help others debug your issue easier.
1. Run in debug mode and put a breakpoint in the event handler. Is it breaking?2. Create a simple code example that anyone can just copy and paste into their project and run to reproduce the problem
3. It seems like you are setting the ID of the new panel to be the same as the treenode. IDs should be unique.
I have a simple layout in my application where on a treenode click, I add a new tab. It works fine in version 1.0.