I know how to render a unordered list with children when returning data from the database but I have a slightly different requirement.
My view has a top level of list items in the UL made up of dates. When the user clicks a date it needs to send that server side to run a query to render the possible children. It has to do this up to 4 levels deep.
My question is once you send the parameter server side how do you make sure that the previous nodes are in tact because by the time you are 4 levels deep you have lost the model that generated the top level.