1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
    meliniak is on a distinguished road

      0  

    Default [Grid] hideHeaders & autoExpandColumn

    [Grid] hideHeaders & autoExpandColumn


    Salutations.

    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.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I just tested it and i cannot brake it. Can you please post a fully working testcase that implements EntryPoint and shows your problem?

  3. #3
    Ext User
    Join Date
    Jul 2010
    Location
    berlin/germany
    Posts
    20
    Vote Rating
    0
    oneTETSUO is on a distinguished road

      0  

    Default


    an appropiate setup of (all) components is urgent/needet. figuring out, what method to call on what object is a bit tricky sometimes.

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
    meliniak is on a distinguished road

      0  

    Default


    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:

    Code:
    			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);

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You are not setting a width to your grid (maybe you container is doing it through an layout?). This can already be the problem.

  6. #6
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
    meliniak is on a distinguished road

      0  

    Default


    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?

  7. #7
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You should try to create a testcase. Most times this is the most timesaving thing you can think of.

Similar Threads

  1. [SOLVED] change dynamicaly hideHeaders propertie of a grid
    By franck34 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 24 Mar 2010, 5:24 AM
  2. Replies: 12
    Last Post: 18 Jun 2009, 8:00 AM
  3. Tree&Grid&form&struts&spring&hibernate
    By vxi in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Dec 2007, 10:49 PM
  4. [grid] autoSizeColumns && autoExpandColumn errors
    By nassaja-rus in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 16 Mar 2007, 3:47 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."