Hello everyone! I am sharing a treetable below:
I attempted to set the itemcaption to null with the following code, but unfortunately it did not work as expected:
public void uncollapseTable(){
for (Object itemId: tblFinalGrade.getItemIds()){
tblFinalGrade.setCollapsed(itemId, false);
unHideChildren(itemId);
tblFinalGrade.setItemCaption(itemId, null);
}
}
public void unHideChildren(Object itemId){
if(tblFinalGrade.hasChildren(itemId)){
for(Object id : tblFinalGrade.getChildren(itemId)){
tblFinalGrade.setCollapsed(id, false);
unHideChildren(id);
tblFinalGrade.setItemCaption(id, null);
}
}
}
Is there a way to hide the expand/collapse icons without using css? If not, how can I achieve this with css? Thank you in advance!