core icon indicating copy to clipboard operation
core copied to clipboard

How to use column picker feature

Open burimshala-zz opened this issue 7 years ago • 1 comments

An older version of this table supported a feature where you could reorder and show and hide various columns, unfortunately I am not being able to figure out how to use that feature on the most recent version.

On the Features I can locate a function called : moveSingleSelect but I have no idea how to consume it.

burimshala-zz avatar Feb 02 '18 15:02 burimshala-zz

For column swapping, just set grid.properties.columnIndexes or grid.properties.columnNames. Both are array accessors that map the full column list into the active column list.

The active column list is the ordered set of currently active columns. ("Active" means all "visible" columns. This includes all columns currently viewable in the grid, including any that may be horizontally scrolled out of view.)

Note that grid.behavior.getColumn(x) simply dereferences the grid.behavior.allColumns array while grid.behavior.getActiveColumn(x) dereferences grid.behavior.columns array.

joneit avatar Mar 06 '18 08:03 joneit