56011

Number of records inferior to the number of rows - vertical scrollbar

If reccount < rownum then I have an "empty column" after the last column. How to avoid this phenomena? In fact this column has the dimension of the vertical scrollbar!

Answer1:

Right, space is often reserved for a vertical scrollbar even if there are not enough rows in the grid to require a scrollbar. See jqgrid-is-there-a-way-to-always-display-a-vertical-scrollbar for some ideas on how to always display the vertical scrollbar, to ensure the space is filled.

Alternatively, if you know there will never be enough rows to require the scrollbar, you can set the scrollOffset to 0 to reclaim the space. From the jqGrid documentation:

scrollOffset</b>

integer

Determines the width of the vertical scrollbar. Since different browsers interpret this width differently (and it is difficult to calculate it in all browsers) this can be changed.

Recommend

  • Autoscroll on parent panel, when there is overflow on child panels.Extjs
  • Date of max id: sql/oracle optimization
  • Custom Scroll Bar for Div with pure CSS [duplicate]
  • set body width in px?
  • Responsive jqGrid with bootstrap classes to the column headers
  • Web Grid, Client side Binding VS. Server side HTML generation
  • DELETE FROM … reporting syntax error at or near “.”
  • jqGrid setting zIndex for alertmod
  • Row_number() function for Informix
  • How can I stop the scrollbar from displacing my page?
  • JQgrid : Change entire row's font color if one column is filled
  • SQL Server 2005, Caches and all that jazz
  • Process.PrivateMemorySize64 returning committed memory instead of private
  • How to start server for Selenium grid Java Maven setup
  • Allocating a 2D contiguous array within a function
  • How can I implement a custom jqGrid delete button?
  • Oracle - Second level subquery cannot see field from main query
  • my tic-tac-toe program in matlab does not work [closed]
  • Dynamically load css stylesheet and wait for it to load
  • C# List of Panels
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • Django model inheritance, filtering models
  • rspec simple example getting error on request variable in integration test
  • How to attach a node.js readable stream to a Sendgrid email?
  • Exception “firebase.functions() takes … no argument …” when specifying a region for a Cloud Function
  • Splitting given String into two variables - php
  • Spray.io: When (not) to use non-blocking route handling?
  • How to draw moving and Running sine wave chart using JFree chart in java?
  • vba code to select only visible cells in specific column except heading
  • ActionScript 2 vs ActionScript 3 performance
  • To display the title for the current loaction in map in iphone
  • Do I've to free mysql result after storing it?
  • 0x202A in filename: Why?
  • how to add data labels for bar graph in matlab
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • How to set the response of a form post action to a iframe source?
  • How does Linux kernel interrupt the application?
  • Sorting a 2D array using the second column C++
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize