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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:29:00+00:00 2026-06-18T12:29:00+00:00

I am using a JQGrid which has a Jscrollpane inside it. The Grid has

  • 0

I am using a JQGrid which has a Jscrollpane inside it. The Grid has pagination to it.

When I select 10 or 20 records and after that I scroll down the grid, the scroller jumps to the top even if I scroll using the mousewheel plugin. It is always on top, it just won’t come down.

If I use normal scroll bars, everything works fine. I have tried maintainPosition:true and false but even then, the scroller is always on top.

gridComplete: function(){
                var table_header = $('#gbox_list').find('.ui-jqgrid-hbox').css("position","relative");
            $('#gbox_list').find('.ui-jqgrid-bdiv').bind('jsp-scroll-x', function(event, scrollPositionX, isAtLeft, isAtRight){
          table_header.css('right', scrollPositionX);
         }).jScrollPane({
             showArrows: true, 
            autoReinitialise: true,            
        horizontalDragMaxWidth: 30,
        verticalDragMaxHeight: 30,  
        maintainPosition:false
      });
            },

Working model

Keep using the scrollbar and try selecting 5///10///20 records… You will notice the error.

Everytime the content gets changed, I need the scrollbar to be on the top as well as to the left when reinitialized.

  • 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-18T12:29:02+00:00Added an answer on June 18, 2026 at 12:29 pm

    I did 3 things to get this working.

    1. jScrollPane was not initializing from inside jqGrid’s gridComplete function so I moved it to the end of the script.
    2. I then initialized jScrollPane against $('div.ui-jqgrid-bdiv').
    3. I commented out autoReinitialise: true.

    Put this at the end of your script and comment out the contents of gridComplete.

    $('div.ui-jqgrid-bdiv').jScrollPane({
      showArrows: true, 
      //autoReinitialise: true,            
      horizontalDragMaxWidth: 30,
      verticalDragMaxHeight: 30,     
      maintainPosition:false
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My client side application is using jqgrid that requests the server side, which in
I am using jqgrid 3.8. I have a grid which is having some editable
I am using jqgrid, and added one subgrid inside it, which looks like as
I am using jqgrid, and added one subgrid inside it, which looks like as
I have a asp.net webforms page in which I'm using the jqGrid component. The
I'm using jqgrid tree grid with the following configuration colModel : [ { name:'id',width
I am using JQGrid to get the date from the RESTFul web services that
I am using jqgrid. My page has three tabs and each tab contains a
I am developing a commercial MVC2 app that requires a grid that has callback
I'm trying to build a system using jqgrid which does everything on the clientside,

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.