View Full Version : How do you force a column to be non-resizeable?
steve.neill
30 Nov 2006, 10:27 PM
I have a grid with about 8 columns. I want the first 2 columns to be fixed width (20px), and the last 6 to be sizeable. How can I do this?
Thanks,
Steve
Animal
1 Dec 2006, 12:50 AM
Override your ColumnModel's setColumnWidth and fireWidthChange to just return if the column index passed in is unresizable.
jarrod
1 Dec 2006, 5:05 AM
Specify fixed:true in the respective columns' config.
jack.slocum
1 Dec 2006, 6:34 AM
As jarrod said, fixed:true or also, resizable:false is a little less restrictive (allows autosizing to work too).
steve.neill
1 Dec 2006, 9:25 AM
Thanks guys.
I couldn't find the "fixed: true" documented anywhere. Is it documented or was I not looking in the right places?
Steve
jack.slocum
1 Dec 2006, 11:44 AM
It's a "hidden gem". ;)
I will update the documentation to reflect it.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.