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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:06:29+00:00 2026-05-23T02:06:29+00:00

I am using jqGrid with a horizontal scrollbar, but when I use the horizontal

  • 0

I am using jqGrid with a horizontal scrollbar, but when I use the horizontal scrollbar the column header does not move together with the columns. Once I stop scrolling the grid comes back to normal. See the attached picture:
enter image description here

This is happening in FF (4.0.1) but not in IE8.

Here are the grid options I use:

width:'800',
shrinkToFit:false,
height: 500,
pager: '#pagerDiv',
gridview: true,
rowNum: 50,
rowTotal: 500,
sortorder: 'desc',
cellEdit: true,
cellsubmit: 'remote',
cellurl: 'MyURL',
beforeSaveCell: 
function (rowid, cellname, value, iRow, iCol) {
    return parse(value);
},
viewrecords: true,
loadComplete: loadCompleteHandler,
ignoreCase: true

....

jQuery(function(){
        jQuery("#listTable").jqGrid('filterToolbar',{
                            stringResult: true,
                            searchOnEnter: false });
    });

I have jqGrid version 3.8.2, jQuery 1.4.4 (full).
Is there any way to fix this?

  • 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-23T02:06:30+00:00Added an answer on May 23, 2026 at 2:06 am

    I suppose it’s not a bug in jqGrid. What you describes looks like the difference how jQuery.scroll are implemented in different web browsers. I’ll try to explain why I think so.

    To understand where are the problem you should know that the column headers are not a part of the same HTML table. At the creation time the <th> elements which builds column headers are really in the <table>, but then there are moved in another div. So one have always so named hDiv (header div) and bDiv (body div). See the answer for details. Additionally the DOM element of table receive an expander (additional property) grid which save different additional information like grid.hDiv – the DOM element of the hDiv (header div) and grid.bDiv – the DOM element of the bDiv (body div).

    Now about the scrolling. Because column headers are in another div the scrolling works asynchronous. To make it synchronized jqGrid register jQuery.scroll event handler for the <table> element (see here) and inside of the corresponding event handler scrollGrid execute the following code:

    grid.hDiv.scrollLeft = grid.bDiv.scrollLeft;
    

    (see the line here). So on every scrolling event on the table the scroll position will be synchronized.

    The effect which you describe seem for me that FF (4.0.1) fire the scroll event only after you drop the scroll box.

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

Sidebar

Related Questions

In my jqGrid (using version 4.0.0), I get an unnecessary horizontal scrollbar but when
I dont know why, but im using jqGrid and pager not show properly. I
I am using JQGrid in my solution in which i load tabs dynamically, but
I am using jqGrid with ui.multiselect.js for column choosing and reordering. The dialog which
I am using jqGrid , but it cannot take attributes from a xml file.
I am using jqGrid . Pagination is not getting reflected, what could be the
I'm using jqgrid 3.8.2, I'm trying to use below code to reload data from
I am using the latest jqgrid 4.3.1 and I am trying to use frozen
I'm using jqgrid for which I create column definitions on server as dynamic objects
I am using jqgrid and I had to freeze couple of columns in the

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.