1. #1
    Ext User
    Join Date
    May 2010
    Posts
    7
    Vote Rating
    0
    PTJ82 is on a distinguished road

      0  

    Default TreeGrid - Manually Resizing Columns Causes Misalignment

    TreeGrid - Manually Resizing Columns Causes Misalignment


    I have noticed a column alignment issue when collapsing and then expanding rows in a TreeGrid. If a TreeGrid is expanded and then the user resizes a column manually, upon collapsing and re-expanding, the expanded cells within the column that was resized are drawn in their original position. If the user then attempts to resize the column again, the cells snap back to the correct position. This will continue to happen whenever a column is manually resized and then rows are collapsed and expanded.

    I have attached an image to show this issue. The 2nd and 3rd rows under %MV are misaligned with the "%MV" column. If the user manually changes the width of the "%MV" column, the cells (100% values) will snap back to proper alignment. If the user collapses "Total" and then re-expands "Total", the cells will once again be misaligned.

    Attachment 20970

    The "%MV" column is using a GridCellRendere and the following properties are set for the grid.

    Code:
    TreeGrid<ModelData> grid = new  TreeGrid<ModelData>(_Store, cm);
    
    /* *********** Grid  configuration properties ***************/
    grid.setBorders(true);  
    grid.setAutoWidth(true);
             
    /* Turn off icons close/open icons */
    grid.getStyle().setNodeCloseIcon(null);
    grid.getStyle().setNodeOpenIcon(null);
    grid.setAutoHeight(true);
    Note: I remember seeing a similar issue with a standard grid when manually resizing columns. The grid contained nested column headers.

    Regards,

    --Paul J.

  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


    grid.setAutoWidth(true);

    Than is not going to work. You need to correctly size your grid. Also please post a fully working testcase that implements EntryPoint

  3. #3
    Ext User
    Join Date
    May 2010
    Posts
    7
    Vote Rating
    0
    PTJ82 is on a distinguished road

      0  

    Default


    My mistake, this is an error on my part and not a bug.

    In my custom GridCellRenderer "render" method I was overriding the "width:" style property in "config.style" while setting custom styles for each cell in the report. I am now setting "width:" equal to the column width from the grid into the "config.style" and the misalignment no longer is happening.

    Sorry for the false alarm.

    Regards,
    Paul J.

Similar Threads

  1. TreeGrid columns fit
    By kotovsky in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 8 Mar 2010, 8:36 AM
  2. Sizing TreeGrid Columns in CSS
    By Pandaman in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 5 Aug 2009, 1:35 PM
  3. Replies: 11
    Last Post: 12 Jun 2009, 10:37 PM
  4. Replies: 6
    Last Post: 4 Nov 2008, 8:20 AM
  5. Resizing columns on an accordion
    By christocracy in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Nov 2007, 9:46 PM

Thread Participants: 1

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..." hd porno faketaxi