-
8 Feb 2011 10:39 PM #1
Column Width Problem
Column Width Problem
Hi all..,
I have problem in setting my width column...,
I have a grid with dynamic columns (the first column is static) and I'm using forceFit config to true for preventing horizontal scrolling. But when it shows only 2 columns, the width of the first column is too large.
here is the pict :

This is what I expect :
http://i1095.photobucket.com/albums/...rd_eqplan2.jpg
I've tried to use autoExpandColumn config to resize only the first column, But it didn't work
How can I achieve it?
Can I use autoExpandColumn & forceFit (set to true) config in the same grid?
Thanks in Advance
Berusaha dan Berdoa
-
9 Feb 2011 11:04 PM #2
-
10 Feb 2011 2:33 AM #3
Yes.., I've tried both config (autoExpandColumn & forceFit : true).
But the autoExpandColumn for the first column didn't work.
I've looked at this thread (seems He got the same problem as I do) :
http://www.sencha.com/forum/archive/...p/t-45421.html
But I haven't understood
Any idea?
Thanks..
Berusaha dan Berdoa
-
11 Feb 2011 4:54 AM #4
I replied to your post on stackoverflow, but just incase you don't see it:
You cannot use autoExpandColumn if forceFit = true is set in your viewConfig
-
11 Feb 2011 5:10 AM #5Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Make the first column fixed:true.
-
13 Feb 2011 10:18 PM #6
Thanks Jaitsu for the reply.., I've checked it out.I replied to your post on stackoverflow, but just incase you don't see it:
You cannot use autoExpandColumn if forceFit = true is set in your viewConfig
I tried autoExpandMax and autoExpandMin, but it didn't work.
Hmm.., is there a way to achieve my needs?
I've tried that way, but it still shows the same result..Make the first column fixed:true.
is there something wrong with my code?Code:var gridView = new Ext.grid.GridView({ forceFit : true, autoExpandColumn : "eqplan", scrollOffset : 0 }); // my grid config ... constructor: function (config){ config = config || {}; config.id = config.id || 'dashboard_grid'; config.autoHeight = true; config.width = config.width || '100%'; config.border = config.border || true; config.deferredRender = true; config.panelId = config.panelId || 0; config.stripeRows = true; config.loadMask = true; config.view = gridView; config.autoScroll = false; } ...
Thanks in Advance
Berusaha dan Berdoa
-
17 Feb 2011 2:20 AM #7Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
1. You can't use both autoExpandColumn and forceFit:true.
2. 'width' can't be 100%, only numbers are allowed.
3. I don't see your column definitions, so I can't check if you are using fixed:true correctly.
Similar Threads
-
Changing column width problem
By savsw in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 6 Oct 2010, 9:12 PM -
Stackedcolumnchart problem with column width.
By szanowny-pan in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 12 Nov 2009, 3:33 AM -
hii all , im getting Column width problem in Ext JS
By muskaan in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 23 Jun 2009, 1:51 AM -
Problem with initial column width: last column has width 0
By dweeb in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 4 Dec 2008, 7:49 AM -
Column Width Problem
By smit_al in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 5 Aug 2008, 1:44 PM


Reply With Quote