I am using a webix ui.tree to show details of an organization by loading the data from the server. Once the data is loaded I would like to add a new node(child) to the last branch in the tree in every single row. So for e.g. if every record is represented by 4 nodes then I would like to add data to 4th node of every record but I would like to do this once data is returned from the server because the new dynamic data would depend on another call to the server.
I tried doing it with ‘onBeforeOpen’ event but the problem is when I select parent without opening the children the selected count is incorrect as the data in the last child has not been updated.