Show details of slected tree item

I want to create a website with with the tree on the left side and with a table on the right side. When the user clicks on an item in the tree a table with all the details should appear on the right side. each tree item can have one or more records which should appear on the right side. The tree items are stored in one database table and the records which belong to the item are stored in another database table.

Would be great if anybody could help me.


The tree allows to assign the onClick event handler

    //any custom code here
    //id - id of selected info

The details data can be loaded from server side by any custom logic, or stored inside tree’s xml as userdata … ml#xmlload