Expand node programmatically in a TreeTable

Hi, when I edit a item in my TreeTable I call this method to refresh the table:

public void refresh() {

After this code, TreeTable collapses, so I call:

table.setCollapsed(editedItemParent, false);

But this doesn’t works, so my question is, How can I expand the edited item’s parent?

​Thank you.

It should work that way with setCollapsed(), so the problem probably is in some code that is not visible here. For example, I don’t see you setting the item parents in the refresh() method.

It’s a bit unusual to use item IDs for the item captions in TreeTable. I hope there isn’t some confusion about the IDs when you edit the items, as their IDs change when you edit them.