Treeview with dynamic view genie and dynamic row height

We altered the treeview and are able to just view a branch of a tree, this works fine. Now some additional questions

Would it be possible to dynamically change the view genie depending on a value in the data model? The view genies we would like to use have different heights, so these should also change depending on a value in the data model. This is setup in the _Treeview_OnInit (or in our case he _Branchview_OnInit) function, but seems static.

Any suggestions?