Skip to Content

sapui5 table columns width with static columns

All,

I have a table that has 2 fixed columns and a few others which are not fixed. When I try resizing the fixed columns they resize just fine, however, when I resize the columns which are not fixed, then the width becomes different to what I am dragging my column to. Any non-fixed column that I try resizing becomes the new width which is bigger than the sizing I am giving. In order for me to resize to my expected width (less than the one the framework is defaulting) I have to resize to less than the width of the column itself. this does not look like a good option.

if there a bug in the column resizing when there are fixed columns? any idea of how to come around this issue is appreciated.

thank you in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 02, 2015 at 08:26 PM

    Also,

    The amount that the flexible column width is off after resizing seems to be proportional to the size of the fixed columns.  That is, if the the 2 fixed columns are very small, then when you resize other columns, they are only slightly off from where you tried to size the column.  If the 2 fixed columns are of any substantial size, the resizing is off quite significantly.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 03, 2015 at 04:31 PM

    Ok, the issue seems to be an SAPUI5 bug that has been resolved in a later release (not sure which one).  The reason I believe this is the case is that the problem is easily reproducible in our local version of the SDK on the table control with no code modifications, but it appears to be corrected on the SAPUI5 official version of the SDK online.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 10, 2014 at 03:38 PM

    in case more information is needed. I have set the following table properties:

    selectionMode: sap.ui.table.SelectionMode.Single,

    navigationMode: sap.ui.table.NavigationMode.Scrollbar,

    fixedColumnCount: 3,

    layoutFixed: false,

    width: 'auto'  // I also tried :  width: '800px'

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 06, 2015 at 07:20 PM

    This is still an issue.  Seems like an SAPUI5 bug.  See screenshots, I try to set the width of the "RECV PLANT" column where the mouse is indicated in the first picture, and the result is in the second picture.  It does this for any of the non-fixed columns.  Does anyone have any ideas?

    Edit: if I remove "fixedColumnCount: 2," from the table declaration, this problem goes away.


    Add comment
    10|10000 characters needed characters exceeded