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 6 years, 5 months ago.
December 6, 2016 at 8:33 pm Grid resizing everpresentrow #89612
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 :December 7, 2016 at 6:20 am Grid resizing everpresentrow #89615
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.
http://www.jqwidgets.com/December 7, 2016 at 1:50 pm Grid resizing everpresentrow #89648
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.
December 8, 2016 at 7:07 am Grid resizing everpresentrow #89665
- This reply was modified 6 years, 5 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.