Tagged: angular 2 grid, angular grid, Cell, column, ever present row, everpresentrow, fluid size, grid, jquery grid, jqxgrid, minwidth, percentage width column, resize, Resizing, scrollbar, showeverpresentrow
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 :
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.
My bad. The following jsfiddle demonstrates what I was talking about :
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.
- 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.
- “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.
You must be logged in to reply to this topic.