I am using columnSummary and nestedRows in hadsontable and I am trying to write the logic to have all rows collapsed by default (which is not currently the case). I didnt found any built–in method for this so I was trying to achieve it with afterInit
or afterRender
callback.
However, when I run following code in any of the above callback, the summaryRow
data gets corrupted. (after some notable time --like 1s) It adds N empty rows(I presume no of rows including collapsed), expands the nested Rows (there is no logic for expanding all rows) and shows summary in arbitrary Row. (not the row it was supposed to display).
collapseRows(){
const nestedRows = this.getPlugin('nestedRows')
nestedRows.dataManager['rewriteCache']();
nestedRows.collapsingUI['collapseAll']()
}
If I(user) clicks on collapse/expand button on any row after words(It gets fixed)