PDA

View Full Version : Grid - What Does Locking Columns Do??



danh2000
5 Jun 2007, 3:02 PM
Hi,

What exactly does Lock Column do?? I can still sort, edit, and move columns when locked - what does locking a column achieve?

Thanks,

Dan

cpantel
5 Jun 2007, 6:24 PM
If a grid has horizontal scrolling, it freezes the locked column in place while the other columns can scroll. It is similar to Freeze Panes in Excel. You can see it in action in the Array Grid Example (http://www.extjs.com/deploy/ext/examples/grid/array-grid.html). Make a few of the columns wider to cause a horizontal scroll bar to appear. Right-click on a column header and Lock the column. Then, try scrolling horizontally.

danh2000
5 Jun 2007, 6:28 PM
Ok, I see now - thanks very much.

Dan