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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:00:25+00:00 2026-05-31T08:00:25+00:00

My JQGrid’s Paginator not working as expected. Navigation buttons are working fine. But when

  • 0

My JQGrid’s Paginator not working as expected. Navigation buttons are working fine. But when enter the page number manually and pressed enter key, it is not working. I have tried all the possible options. But still it is not working. Can somebody help me to identify the issue.

Here is my grid creation code:

$("#ptSPSDataGrid").jqGrid({
        datatype: 'local',
        data: localdata,
        colModel: colmod,
        rowNum: 10,
        rowList: [10, 25, 50],
        pager: '#ptSPSPager',
        page: 1,
        gridview: true,
        rownumbers: false,
        viewrecords: true,  
        altRows:  true,        
        loadtext: "Loading parts data...", 
        caption: 'Part Data',
        width: 713,
        shrinkToFit: false,
        scrollOffset: 0,
        height: '100%',
        loadComplete: function() {
            $("#ptSPSDataGrid").trigger("reloadGrid"); // Call to fix client-side sorting
        } 
    }); 
$("#ptSPSDataGrid").jqGrid('navGrid', '#ptSPSPager', { add: false, edit: false, del: false, search: false, refresh: false });
            $("#ptSPSDataGrid").jqGrid('navButtonAdd', '#ptSPSPager', {
                caption: "Show/Hide Columns",
                title: "Click here to select the columns to view",
                onClickButton: function () { //Adding some code
                 },
        position: "last"
    });
  • 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-31T08:00:26+00:00Added an answer on May 31, 2026 at 8:00 am

    I think the problem is in the lines

    loadComplete: function() {
        $("#ptSPSDataGrid").trigger("reloadGrid"); // Call to fix client-side sorting
    }
    

    The event reloadGrid reset the page parameter to 1 if you not explicitly set additional parameter (see the answer).

    What you probably want to do is to trigger reload only once. So you can change the code to something like

    var firstLoad = true;
    
    $("#ptSPSDataGrid").jqGrid({
        datatype: 'local',
        data: localdata,
        ... // other parameters
        loadComplete: function () {
            if (firstLoad) {
                $(this).trigger("reloadGrid"); // Call to fix client-side sorting
                firstLoad = false;
            }
        } 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My jqGrid, displays columns, retrieves the data but it does not display them in
With jqGrid if width of columns are not specified, they share the width of
I have jqGrid 3.5 (full) mostly working. I have it retrieving data with the
I have a jqGrid on a page and users can click a button to
I have a jqGrid with which users will select records. A large number of
I'm trying to create a jqgrid, but the table is empty. The table renders,
JQgrid outputs this html for a left aligned cell - but it is too
My jqGrid that does a great job of pulling data from my database, but
I'm using jqGrid to build a custom inline entry widget on a page. The
Our jqGrid is working well - if we return > 1 row everything works.

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.