I think you can take the .onViewportChanged()following steps in case :
- Get columns with
.getColumns()and save in an array variable arrColumns. - Then define the first column.
- Save data with
.getData()in array variablearrData - Sorts the
arrColumnsplacement of the first column at the beginning. - Set columns in new
arrColumnswith.setColumns() - Reassemble
arrDatawith new order arrColumns. .resizeCanvas()- .: D
, , , .
, , . , . - , scrollTo() .