7 Oct 2010 1:47 AM #1
[Grid] hideHeaders & autoExpandColumn
I'm having problem with setting a grid. I want to place one column in the grid that fits the full width, with its header hidden. Using autoExpandColumn works fine, but when calling setHideHeaders(true), the column is just several px wide. Am I doing something wrong or is this a bug?
Any comments highly appreciable.
7 Oct 2010 1:51 AM #2
I just tested it and i cannot brake it. Can you please post a fully working testcase that implements EntryPoint and shows your problem?
7 Oct 2010 6:20 AM #3
an appropiate setup of (all) components is urgent/needet. figuring out, what method to call on what object is a bit tricky sometimes.
7 Oct 2010 6:29 AM #4
Thank you for your quick answers.
No doubt about that. In the meantime I realized that I use outdated jar - 2.1.1 instead of 2.2.0. I will try to update it and see if the problem still occurs. If so, I will prepare a testcase.
Btw, here is the code, if it is my fault, one might point out what's wrong:
List<ColumnConfig> configs = new ArrayList<ColumnConfig>(); ColumnConfig column = new ColumnConfig(); column.setId(fieldName); column.setHeader(header); column.setWidth(this.getWidth()); TextField<String> field = new TextField<String>(); column.setEditor(new CellEditor(field)); configs.add(column); ColumnModel cm = new ColumnModel(configs); store.setMonitorChanges(true); EditorGrid<ModelData> grid = new EditorGrid<ModelData>(store, cm); grid.setId(listFieldName); grid.setAutoHeight(true); grid.setAutoExpandColumn(fieldName); grid.setHideHeaders(true); grid.setBorders(false);
7 Oct 2010 6:30 AM #5
You are not setting a width to your grid (maybe you container is doing it through an layout?). This can already be the problem.
8 Oct 2010 7:36 AM #6
Thanks for your suggestion. Indeed, the grid's width is not set explicitly, however setting it doesn't help. Any more ideas before I'm forced to make the testcase, anybody?
8 Oct 2010 7:40 AM #7
You should try to create a testcase. Most times this is the most timesaving thing you can think of.
By franck34 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 24 Mar 2010, 5:24 AM
By mpf in forum Ext 3.x: BugsReplies: 12Last Post: 18 Jun 2009, 8:00 AM
By vxi in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 25 Dec 2007, 10:49 PM
By nassaja-rus in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 16 Mar 2007, 3:47 AM