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

  • SEARCH
  • Home
  • 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 8781665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:21:50+00:00 2026-06-13T20:21:50+00:00

I have issues with jqGrid column width. Few options that I have set for

  • 0

I have issues with jqGrid column width.

Few options that I have set for my grid :
autowidth: true,
shrinkToFit: true,
width : 100%,

And the change that I have done in ui.jqGrid.css is as follows:

.ui-jqgrid .ui-jqgrid-htable {
   table-layout:auto;
   margin:0em;
} //for header - auto table layout.

Similarly I have done for body and footer.

Hope this helps. Please let me know in case there requires any other information.

Note:
I am using the latest jqGrid.
I referred to a similar question jqGrid header width different from data column width, but it was not useful in my case.

  • 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-06-13T20:21:51+00:00Added an answer on June 13, 2026 at 8:21 pm

    I have figured out the reason for the problem.

    I had added a CSS previously for table ( meant for my custom table) and that has overridden the jQgrid CSS causing the issue.

        table td {
             padding: 5px;
             border: solid 1px #e8eef4;
        }
    
        table th {
            padding: 6px 5px;
            text-align: left;
        }
    

    So I added the specific class the above one, so that it doesn’t override jqGrid.
    Sorry that I did not notice and figure it out earlier.
    And also the need for change in table-layout property in jqgrid-css was not required. My motive being shrinktofit and autowidth.

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

Sidebar

Related Questions

I have a grid that fills select lists from a dataurl in the jqGrid
I seem to have an issue where with jQuery Grid (jqGrid) if I have
Is there any way to do it? I often have issues that work locally
I have a jqGrid that has add/edit dialogs with a form that's longer than
I have a jqgrid and use form editing on this grid. The issue I
I have a jqGrid script like that: jQuery(document).ready(function() { var startDate = $(#startDate).Val(); jQuery(#sandgrid).jqGrid({
I have seen the following demo with frozen column and filter toolbar here: http://www.ok-soft-gmbh.com/jqGrid/FrozenColumns.htm
I have quite a few working examples of jqGrid, and yesterday I added a
everything is working fine with my jqgrid except a small issue. i have defined
I have issues with Firefox and keydown function. It will not trigger the function

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.