jQuery UI Widgets › Forums › Grid › Grid resizing everpresentrow
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
This topic contains 3 replies, has 2 voices, and was last updated by Dimitar 7 years, 9 months ago.
-
Author
-
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 :
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,
DimitarjQWidgets team
http://www.jqwidgets.com/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.
Hello 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.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.