Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4267268
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:52:34+00:00 2026-05-21T06:52:34+00:00

In my jqGrid (using version 4.0.0), I get an unnecessary horizontal scrollbar but when

  • 0

In my jqGrid (using version 4.0.0), I get an unnecessary horizontal scrollbar but when there is a vertical scrollbar as well. This problem only occurs in Chrome and Firefox, but not in Internet Explorer.

It seems as if there is something wrong with the calculation of the table width, because the horizontal scrolling is only one or two pixels. I use autowidth: true as table property for the width. There are about eight columns, some have a fixed width (very small), others have a dynamic width.

Disabling horizontal scrolling at all is no solution, because users can still enlarge certain columns and then a horizontal scrollbar is needed. But initialy I want it to load with the columns aligned to the table width and a vertical scrollbar when needed to display the table on smaller screens.

Below is an exerpt of the grid properties in the code

    $("#grid").jqGrid({
    datatype: 'json',
    mtype: 'POST',
    colNames:loadColumns(columns)[0],
    colModel:loadColumns(columns)[1],
    height: $(window).height() - 160,
    rownumbers: false,
    pager: '#pager',
    rowNum:25,
    rowList:[25,50,100],
    sortname: 'invid',
    sortorder: 'desc',
    viewrecords: true,
    autowidth: true,
    beforeSelectRow: function(){
        return false;
    },
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:52:35+00:00Added an answer on May 21, 2026 at 6:52 am

    You should verify that you not have some setting of the table in your CSS.

    For example in my suggestion here I described that the standard CSS of ASP.NET MVC project (all version from 1.0 till 3.0) include the following settings:

    table
    {
        border: solid 1px #e8eef4;
        border-collapse: collapse;
    }
    table td
    {
        padding: 5px;
        border: solid 1px #e8eef4;
    }
    

    This setting will not taken in the consideration by calculating of the optimal grid width. If you remove the settings or add the following additional settings

    div.ui-jqgrid-view table.ui-jqgrid-btable
    {
        border-style:none;
        border-top-style:none;
        border-collapse:separate;
    }
    div.ui-jqgrid-view table.ui-jqgrid-btable td
    {
        border-left-style:none
    }
    div.ui-jqgrid-view table.ui-jqgrid-htable
    {
        border-style:none;
        border-top-style:none;
        border-collapse:separate;
    }
    div.ui-jqgrid-view table.ui-jqgrid-btable th
    {
        border-left-style:none
    }
    

    the problem with the horizontal scroll bars will be solved.

    If you not use ASP.NET MVC, you problem can have another reason, but I would recommend you to search for any definition of CSS for table, td or th.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the latest version of jqGrid : 3.6.4 This seems like a
The jqGrid has been kicking my butt (as well as others on this site).
I am using a custom formatter for my jqGrid columnModel and I can't get
I am using jqGrid and I don't want the grid to autoload. I only
I'm writing a MVC website and using jqGrid. I have managed to get it
I'm trying to create a jqgrid, but the table is empty. The table renders,
Yesterday I was playing with jQGrid plugin and ASP.NET. Everything turned out well, my
I'm having an issue in IE 6 and 7 when using jqGrid (v3.6.4) and
First off, I'm using version 3.7.1 with a jQuery UI framework theme. I'm trying
i have a asp.net project and its using jqgrid as the javascript grid. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.