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 8035095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:12:51+00:00 2026-06-05T02:12:51+00:00

I know there are questions on here about how to set row height. I

  • 0

I know there are questions on here about how to set row height. I have read them and done what they suggest, but none of them actually solve the problem I want to solve. My users want to see more data on the grid at once. So, I tried to change row height to something like 15px.

jqGrid ignores any row height lower than 23px. The following code works when the height value passed in is 23 or greater:

self.grid.setRowData(row[self.keyColumn], false, { height: cssRowHeight });

Anything lower, and an inspection of the html shows that the row has a height of 21px and there is a 1px border on top and bottom.

So my question is, how can I set the jqGrid row height to a value lower than 23px?

Thanks,
Jerome

  • 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-05T02:12:53+00:00Added an answer on June 5, 2026 at 2:12 am

    It’s good question! I think it will be interesting for other users.

    Look at the demo which displays

    enter image description here

    I used the following CSS:

    .ui-jqgrid tr.jqgrow td { height: 15px; }
    

    The exact results can depends from the other formetters which you use. For example the same grid where the column with formatter: 'checkbox' are visible (see here) looks, especially in IE, not so compact:

    enter image description here

    It’s in any way compacter as the original grid (see the demo):

    enter image description here

    If you need reduce the size of rows having comboboxes for example you have to use additional CSS like

    .ui-jqgrid tr.jqgrow td { height: 15px; padding-top: 0px;}
    .ui-jqgrid tr.jqgrow td input { padding: 0px; height: 11px; width: 11px; }
    

    see here.

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

Sidebar

Related Questions

I know there are a lot of questions on here about this, but most
I know there have been numerous questions here about inline sql vs stored procedures...
I know there are many questions about this but none of them helped my
I know there are alot of different questions about this but none of them
Ok, I know there are already questions on here about this but none are
I know there are many questions similar but any of them didn't help. in
NOTE: I know there are many questions that talked about that but I'm still
I know there are hundreds of questions about UTF-8 woes but I tried all
I know there are a ton of questions on here about jquery image carousel,
OK, I know there have already been questions about getting started with TDD ..

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.