Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
349
Column Widths with grouping bands and fixed table-layout
posted
Dear all. I have grid with grouping bands, and use DisplayLayout.TableLayout = Fixed (it is necessary to draw ellipsis on text overflow).

What I need : grid should take 100% width and it should be possible to resize each column (and set their width in pixel or percent).

Setting grid.Width to 100% causes every column grow in width to take available space (just as it is defined in specification for table-layout: fixed). But is causes the column with '+' signs (used for expanding child bands) grow and indentation of child rows becomes wider than it should be.

I've added empty dummy column to the top-level band and tried to set its width to 1) Unit.Empty and 2) Unit.Percentage(100). The variant 1) as I suppose should tell browser to expand only this column, but it doesn't work that way. Variant 2) is a little bit better - until we resize any column - immediately after resizing ALL the columns are expanded, causing the described above ugly look.

As I found, the width of the dummy column is set to some particular value in pixels - by Infra scripts, I guess.

Summing it up - is there any way to make the column 'fluid' OR/AND fix the width of the column (set it to 20 px, for example).
Any ideas?
  • 349
    posted
    Important notice:

    The width of all columns is set to percents.

    I found the method "function igtbl_lineupHeaders(colId,band)" in ig_webGrid.js, called on mouse down on row header (to resize the column). It has some condition check of column width set to percents and it causes columns to resize.