I’m trying to remove all children of parent in a TreeTable.
I can get the child ids, however it only removes the first child. (Table repaints and I guess I don’t have that id anymore)
Collection<?> childrenIDs = expgrpgrid.getChildren(target);
for (java.util.Iterator<?> i = childrenIDs.iterator(); i.hasNext();){
expgrpgrid.removeItem(i.next());
}
Is there a way to do this?
Thank you for the help.