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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:04:33+00:00 2026-05-16T14:04:33+00:00

I have a JQGrid with loadonce:true(so it’s all client side) and paging enabled(with, say

  • 0

I have a JQGrid with loadonce:true(so it’s all client side) and paging enabled(with, say 20 pages).

I would like to specify a row(programmatically, without user input) and have my grid navigate to the corresponding page to select the specified row.

Is this possible with the current JQGrid?

I’ve looked into search and filter, but that just reloads the grid with new rows – I need my grid to navigate to the correct page – Keeping its data and structure.

I’m in the process of optimizing my grid structure, so any changes needed(say client side to server side) would be possible.

  • 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-16T14:04:34+00:00Added an answer on May 16, 2026 at 2:04 pm

    Because you use loadonce:true, then you prepare the data on the server. On the server side you can decide which row must be selected. On the server side you can also easy calculate on which page will be the selected row. The id of selected row and the selected page you can for example include as a part of the userdata. So the data sent from the server could looks like following:

    {
        "total": 5,
        "page": 1,
        "records": 107,
        "rows": [
            ...
        ],
        "userdata": {
            "page": 3,
            "selId": 24 
        }
    }
    

    Inside of loadComplete you can do about following

    loadComplete: function(data) {
        if (jQuery("#list").getGridParam('datatype') === "json") {
            // data.userdata is the same as jQuery("#list").getGridParam('userData');
            var userdata = jQuery("#list").getGridParam('userData');
            var curPage = jQuery("#list").getGridParam('page'); // is always 1
            if (curPage !== userdata.page) {
                setTimeout(function(){
                    jQuery("#list").setGridParam(
                        { page: userdata.page }).trigger("reloadGrid");
                    jQuery("#list").setSelection (userdata.selId, true);
                },100);
            }
            else {
                jQuery("#list").setSelection (userdata.selId, true);
            }
        }
    }
    

    A working examples you can see on http://www.ok-soft-gmbh.com/jqGrid/DataToSelect.htm and http://www.ok-soft-gmbh.com/jqGrid/DataToMultiSelect.htm.

    UPDATE: Free jqGrid supports multiPageSelection:true option strarting with the version 4.10.0. The option allows to set selection of multiple rows in the grid very easy (and it works very quickly, because it set selection state directly during creating the body of the grid). See the answer and the demo and the readme to 4.10.0.

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

Sidebar

Related Questions

I've implemented a JQGrid table with loadonce:true like this : jQuery(#list).jqGrid({ datatype: 'jsonstring', datastr
I would like to manually apply searching to my jqGrid via JavaScript. I have
I have a jqGrid where the View icon is enabled (view:true), so that a
I have jqGrid with enabled EDIT, DELETE, ADD and VIEW , Now my problem
I've read this QA jqGrid filtering on the client-side using "filterToolbar" and this one
I have a jqGrid with say user information which is to be edited in
I have a JQGRid tree. It loads data click by click, not all at
I have a jqGrid in an ASP.NET MVC View with the option multiselect:true .
I have JqGrid with RadioButton per each row like this. ... { name: 'select',
I have a jqgrid with multiselect true and I want to set some of

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.