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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:46:40+00:00 2026-06-10T19:46:40+00:00

I am new to JQGrid. Let me explain the issue I am facing …

  • 0

I am new to JQGrid. Let me explain the issue I am facing …

I am using struts2-jquery grid, which is internally using JQGrid, and am controlling the grid outside, example: I am using search elements to filter rows in the grid.

When ever the grid is loading, the pager works fine, but when am filtering data the pager is not working and it shows some infinite values . Can any one out there tell me solution for this, since I can’t post my code also … If I got any working example for the above issue is really appreciable …

  • 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-10T19:46:41+00:00Added an answer on June 10, 2026 at 7:46 pm

    Not seeing any code makes things a bit difficult. But here is the code I used in one of my projects to implement pagination in a project that used JQgrid (see if it helps you out in anyway, or an indication on where to start debugging)

    Server side code

    public ActionResult GridData(int page, int rows, string searchField = "", string searchString = "",
                                         string searchOper = "", string sidx = "ID", string sord = "desc")
            {          
                int pageIndex = Convert.ToInt32(page) - 1;
                int pageSize = rows;
    
                var items = _repo.GetItemDatacollection(searchField, searchString, searchOper, pageIndex, pageSize, sidx, sord);
    
                int totalRecords = _repo.GetAll().Count();
                var totalPages = (int)Math.Ceiling(totalRecords / (float)pageSize);
    
                var jsonData = new
                {
                    total = totalPages,
                    page,
                    records = totalRecords,
                    rows = (from item in items.ToList()
                            select new
                            {
                                i = item.ID,
                                cell = new[] { item.ID, item.Name }
                            }).ToArray()
                };
                return Json(jsonData, JsonRequestBehavior.AllowGet);
            }
    

    GetItemDataCollection basically does something like this. (I made use of Scott Guthrie’s dynamic LINQ library inside it, which was very useful, if not pivotal for implementing searching in JQgrid using a LINQ)

      return _entities.Set<T>().Where(ConvertOpr(searchOper, searchField), searchString)
                                          .OrderBy(sidx + " " + sord)
                                          .Skip(pageIndex * pageSize)
                                          .Take(pageSize);
    

    JQgrid implementation

     jQuery('#theGrid').jqGrid({
                url: '@Url.Action("GridData")',
                datatype: 'json',
                mtype: 'GET',
               //...
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jqGrid's filterToolbar method to let users quick search/filter the grid data. I'm
hai i am very new to jquery and jqgrid.. i have implemented a grid...but
I am newbie in using jqgrid. While new page load the grid is properly
I am using the new header grouping feature of jqgrid 4.2 which works great
I am using treegrid with jqGrid and am quite new to this plugin. I
I'm using the new API to set the width of my jqGrid like this:
I'm very new to JQgrid. I have a requirement which i'm not able to
Folks, I am completely new to jQuery and JqGrid both. Usually I take some
I am using MVC 4 + EF 4.1 with jqgrid. I am new with
I'm new to jQuery/jqGrid. I want to return json formatted data from the asmx

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.