on 02-14-2017 2:02 PM
Hi Everyone,
When I open tree table, I am expanding tree to all nodes by default. I don't want user to collapse nodes.
Could anyone please suggest how to disable collapsing nodes option in sap.ui.table.treeTable control.
Thanks,
Best Regards,
Viswanath
Hi,
I found other option to disable by overriding CSS class of tree icon(Arrow icon to expand or collapse)
.sapUiSizeCompact .sapUiTableTreeIcon, .sapUiSizeCozy .sapUiTableTreeIcon {
pointer-events: none; !important;
}
Thanks,
Best Regards,
Viswanath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Well I guess you could extend the control or the TableRenderer but you should probably not do it. Here's where the tree icon is added in TableRenderer.js
TableRenderer.renderTableCellControl = function(rm, oTable, oCell, bIsFirstColumn) {
if (TableUtils.Grouping.isTreeMode(oTable) && bIsFirstColumn) {
var oRow = oCell.getParent();
rm.write("<span class='sapUiTableTreeIcon' tabindex='-1' id='" + oRow.getId() + "-treeicon'");
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "TREEICON", {row: oRow});
rm.write("> </span>");
}
rm.renderControl(oCell);
};
Expand all node by default and let the user decide if he/she wants to expand or collapse nodes.
Cheers,
Pierre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.