Grid height and empty space after last column

Is it possible to fulfill all these requirements?

  • grid height should be fixed regardless of the number of records;
  • the right space after the last columns will never be displayed;
  • If the number of records is greater than the grid height, a vertical scroll bar is displayed;
  • the horizontal scroll bar will never be displayed;
  • when possible, the height can be adapted so as not to have “half” the displayed record at the bottom of the grid.
  • with scroll = true

... and regardless of the number of grids on the OUF screen!

PS: Oleg, of course, answers ...

0
source share
1 answer

Add this to your stylesheet:

.ui-jqgrid .ui-jqgrid-bdiv thead,div,tbody{
  position: relative; 
  margin: 0em; 
  padding:0; 
  /*overflow: auto;*/ 
  overflow-x:hidden; 
  overflow-y:auto; 
  text-align:left;
}

Like jqgrid add options:

 scrollOffset: 0,
+1
source

All Articles