This Example demonstrates the various column lock modes available with Flexicious Ultimate

 

In addition to the left locked and unlocked columns supported by the regular Flex DataGrid, Flexicious Ultimate supports right locked columns.

 

The grid supports the following selection modes:

1) LOCK_MODE_LEFT

2) LOCK_MODE_RIGHT

3) LOCK_MODE_NONE

 

If set to left, the column will be locked to the left and not scroll horizontally.

If set to right, the column will be locked to the right, and not scroll horizontally.

 

Please note, column lock modes only make sense if the horizontalScrollPolicy of the grid is set to "on" or "auto", since if there is no horizontal scrollbar, locked columns behave like unlocked columns, because there is no horizontal scroll. This horizontal scroll policy of the grid defaults to "off", and changing this to "on" or "auto" affects the calculations that we perform in deciding the optimal column widths, in that columns are no longer "squished" or "expanded" to fit the visible width of the grid. The left and right locked section for grids with flat data are wide enough to accommodate the left and right locked columns respectively. For nested grids, both left and right locked sections are wide enough to accommodate the widest left and right locked columns at each level, and for the leftLocked section, we add the width of the disclosure cells which is set via the nestIndent property for each level (it gets multiplied by the nestDepth for a tree look).

 

There are a few restrictions with left and right locked columns. They cannot be re-ordered. Resizing them results in resizing the section that they are in. Finally, resizing them is very slightly slower than resizing the unlocked columns, because we have to redraw the grid on basis of updated section widths.