PDA

View Full Version : locked columns count in grid



santhosh_learner
14 Feb 2016, 11:38 PM
How to get the locked columns count in grid

tristan.lee
19 Feb 2016, 3:00 PM
You could reference the ColumnManager of the grid:

var cm = grid.getColumnManager();

If you have locked columns, then there are going to be 2 header containers in the ColumnManager (headerCt and secondHeaderCt). Depending on which one contains the locked columns, you can do:

cm.headerCt.getColumnCount()

santhosh_learner
22 Feb 2016, 7:36 AM
Thanks tristan.
Actually I need list of locked columns.So iterated all the columns to check the ones with locked: true config