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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:04:10+00:00 2026-05-17T00:04:10+00:00

We use the jqGrid navigator reload button on a grid with loadonce set to

  • 0

We use the jqGrid navigator reload button on a grid with loadonce set to true.

The reload button currently does NOT go back to the server to get the data – how can we get the reload to go to the server to get the latest data?

I believe we can use the beforeRefresh callback to set the grid data to json instead of local but I’m not clear how to even configure the beforeRefresh method – I don’t really understand the docs.

  • 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-17T00:04:11+00:00Added an answer on May 17, 2026 at 12:04 am

    You are not the only person which has the problem. I answerd to the same question before. To reload the grid content from the server you should reset the datatype parameter to original value “json” or “xml” and then refresh the grid. For example

    jQuery("#list").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid');
    

    UPDATED: To call the line inside of beforeRefresh event handler you can do following

    jQuery("#list").jqGrid('navGrid','#pager',
      { edit:false,view:false,add:false,del:false,search:false,
        beforeRefresh: function(){
            alert('In beforeRefresh');
            grid.jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid');
        }
      });
    

    I modified an example from am old question. Here if you click on the refresh button you can see live how the code work.

    UPDATED 2: Free jqGrid supports some new options. reloadGrid event supports fromServer: true parameter which can be used to force reloading of data from the server and navGrid supports reloadGridOptions option which can be used to specify the options of reloadGrid used on click on Refresh button. So the above code could be

    $("#list").jqGrid("navGrid", {
        edit: false,
        add: false,
        del: false,
        search: false,
        reloadGridOptions: { fromServer: true }
    });
    

    By the way one can use navOptions option of jqGrid to specify default options of navGrid (see the wiki article). It allows to write the code something like

    $("#link").jqGrid({
        // all typical jqGrid parameters
        datatype: "json", // or "xml"
        loadonce: true,
        pager: true, // no empty div for page is required
        navOptions: {
            edit: false,
            add: false,
            del: false,
            search: false,
            reloadGridOptions: { fromServer: true }
        }
    }).jqGrid("navGrid");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had started another post wanting to know how to use jqgrid when you
I hope you have a good morning. I'd like to use jqGrid in my
How can I use the Jquery modal confirmation with jqGrid? Say when I will
how to send jqGrid data in json format to server? DO I have to
I'm using jqGrid to display the results of a database query. The php script
I've been working with JQGrid a lot, and would recommend it to everyone. The
We use a custom formatter to output html form text boxes. In the case
Is it possible to group in jqgrid without using subgrids ? I just want
I have a navigation menu which I need to include on all my pages....through

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.