How to keep tree node expanded?

I have used tree node in the project where we can see the department list and if we click on it we can see the  the employees. On click of any employee we see the employee details beside tree (on same page) which is in a data view. Now to implement this I had to assign employee to the current session on click of a employee and cleared any previous associations of current session – employee. And after that redirected to the same page. Where data view fetches data using microflow (returns the employee object associated to current session). I found this solution here Now my problem is that after I have redirected, tree which I had previously expanded will collapse. And I cannot set the config ‘start expanded’ as yes. It will unnecessary show all the departments and all the employees in it. Is there a way to keep the tree expanded? Or any other way to implement the tree node with data view beside it.
0 answers