Can you please make the question a little bit more specific? It seems to me that you have a Tree view on the left and by clicking on it you change the context of a dataview on the right? I have done something like that with my Tree View widget.
See and example here: https://treeview-react-sandbox.mxapps.io/p/parentchild-full
If you want to know how that is accomplished in terms of application logic, you can download the test-project here: https://github.com/JelteMX/widget-test-projects#tree-view (direct link here) and look up this page in the project. That should give you an idea how to accomplish that