jQuery UI Widgets Forums Grid Grid resizing everpresentrow

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 3 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid resizing everpresentrow #89612

    Pfhoenix
    Participant

    When an everpresentrow is used, resizing the grid by any means doesn’t cause the everpresentrow cells to adjust their size to the new column widths. Is there a reason for this? The following jsfiddle URL demonstrates the problem :

    http://jsfiddle.net/x7p4dfy5/9/

    Grid resizing everpresentrow #89615

    Dimitar
    Participant

    Hello Pfhoenix,

    In your example, the columns are with static width. If they were with width in percentages or if you were to manually resize the columns, the ever present row’s cells would resize, too.

    You are, perhaps, referring to another issue that your example demonstrates – when the grid is resized, the last few cells of the ever present row become inaccessible (they can only be accessed by tabbing through the ever present row). We confirm this issue and have created a work item for it.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Grid resizing everpresentrow #89648

    Pfhoenix
    Participant

    My bad. The following jsfiddle demonstrates what I was talking about :

    http://jsfiddle.net/x7p4dfy5/10/

    I’ve also been noticing the horizontal scrollbar show in these cases, and in my mind it shouldn’t. Currently, the column widths are either their widths in pixels or the grid width * column width percentage. My expectation would be the column width would either be the set width (minwidth if the column width percentage * gridwidth is < minwidth) or the column width percentage * (gridwidth – all set column widths). This would make all columns with set widths stay their expected size and would resize the percentage-based columns in order to remove the need for horizontal scrolling.

    As it is right now, I don’t think minwidth actually does anything.

    • This reply was modified 3 years, 7 months ago by  Pfhoenix.
    Grid resizing everpresentrow #89665

    Dimitar
    Participant

    Hello Pfhoenix,

    1. When the grid and its columns are resized, the cells of the ever present row are resized, too. We tested your example with Chrome, Internet Explorer 11 and Firefox and it works fine. Here is a screenshot: https://s15.postimg.org/3jppczm8b/ever_present_row_resize.png.
    2. “This would make all columns with set widths stay their expected size and would resize the percentage-based columns in order to remove the need for horizontal scrolling.” – this is not so in jqxGrid. Columns with percentage widths are always sized based on the width of the entire grid and not on any other column widths. If you wish a behaviour similar to what you described, remove the widths of the percentage columns (making them auto width) and leave only the minwidth setting of the last one.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.