PDA

View Full Version : Locked column grid loses column information



bladesling
8 Aug 2012, 8:08 AM
When I add a locked column to a grid it's columns lack the same properties as grid with no locked columns. I can't seem to run column functions, or access many of the column variables. Is there anyway around this?
The examples have a button called test, that hides a column. It doesn't seem to matter which column I try to hide in the second example, the functions and much of the object are not there.

Working- non locked table:
http://jsfiddle.net/MjFp3/

Not working- locked table:
http://jsfiddle.net/MjFp3/1/

scottmartin
8 Aug 2012, 12:47 PM
This is due to the fact the the locked column feature actually creates a 2nd grid. You can accessing the column info of the lock grid using findParentByType


console.log(column);

Create an itemId for grid and access it that way.

Scott.

bladesling
8 Aug 2012, 1:13 PM
To anyone looking for the code solution:
http://jsfiddle.net/MjFp3/3/