TreeTable/DataTable: adjustColumn() only adjusts after all rows have been loaded

This dynamic treetable loading snippet shows that if you expand only “@dandv”, the table doesn’t adjust its columns. You must expand both nodes for the columns to adjust.

There are multiple bugs here:

  1. if you expand dandv, then collapse it, then expand mizzao, then expand dandv again, the treetable columns won’t adjust, despite all rows being expanded
  2. the line this.adjustColumn(); is useless. If you remove it then expand both nodes, the columns will adjust. This is not because adjust: true being defined for the columns because
  3. If you remove adjust: true from the column definition, and put back this.adjustColumn(), the columns won’t adjust at all - demo.
  4. The name of this method, “adjustColumn” suggests it adjusts one column. Does it take a parameter? If not, it should be renamed to “adjustColumns” (plural).

adjustColumn requires a parameter - id of column to be adjusted

this.adjustColumn('id'); //id - id of column

And yes, the doc is missing this point - we will fix it, sorry for inconvenience