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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:34:31+00:00 2026-06-11T03:34:31+00:00

Using jQGrid v4.2 and jQuery 1.8 I cant get search to work. When I

  • 0

Using jQGrid v4.2 and jQuery 1.8 I cant get search to work. When I click the search button nothing happens…

The reason I’m using v4.2 is because its the latest version of the jqgrid nuget package (annoyingly the author hasn’t updated it).

Does anyone have a workaround? I’ll test it with the latest version to see if it is a bug. In this example it doesnt work with datatype: local but it also doesn’t work with a grid that has json data. Am I doing something wrong?

<link href="../../Content/themes/base/minified/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="../../Content/jquery.jqGrid/ui.jqgrid.css" rel="stylesheet" type="text/css" />

<script src="../../Scripts/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui-1.8.23.js" type="text/javascript"></script>

<script type="text/javascript" src="../../Scripts/i18n/grid.locale-en.js"></script>
<script src="../../Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>


<script type="text/javascript">
    var mydata = [{ id: "1", name: "foo" }, { id: "2", name: "bar"}];

    jQuery(document).ready(function () {
        jQuery("#lgrid").jqGrid({ data: mydata,
            datatype: "local",
            height: 150,
            width: 600,
            rowNum: 10,
            rowList: [10, 20, 30],
            colNames: ['id', 'name'],
            colModel: [{ name: 'id', index: 'id', width: 60, sorttype: "int" },
                                    { name: 'name', index: 'name', width: 60}],
            pager: "#pgrid",
            viewrecords: true,
            caption: "Contacts"
        });

        jQuery("#lgrid").jqGrid('navGrid', '#pgrid', { del: false, add: false, edit: false });
    });     
    </script> 

<table id="lgrid"></table> 
<div id="pgrid"></div> 

EDIT: Works with jqGrid v4.4.1…so I guess its a bug. Its a pity I can no longer use the nuget package 🙁

  • 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-11T03:34:33+00:00Added an answer on June 11, 2026 at 3:34 am

    I struggled with the same issue, and after I while I found the reason that jQgrid search does not work with jQuery 1.8.0:

    In my jquery.jqGrid.js (v 4.3.2) i found this:

    if ($("#" + $.jgrid.jqID(IDs.themodal)).html() !== null) {
          showFilter($("#fbox_" + $.jgrid.jqID(+$t.p.id)));
    }
    

    In my file it was on line 6863, but you may have to search for it, since my file may be a bit modified compared to the original.

    The problem is that $([id]).html() evaluates to null in older jQuery versions, while in jQuery 1.8.0 it instead evaluates to undefined! Since (undefined !== null) is true and (null !== null) is false, the code does different things with different versions of jQuery.

    What I did to fix it, and make it work with jQuery 1.8.0 was to change the comparator from !== to !=. This works since both (null != null) and (null != undefined) evaluates to true!

    Hope this could be of help!

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

Sidebar

Related Questions

Greetings, I have a problem using jqgrid and jquery tab (I am coding in
How can I find the current page number in jqGrid (using jQuery of course).
I'm using the Jquery date/datetimepicker add-on(s), as well as JQgrid. I'd like the onShow
I'm using jqGrid and I have a problem getting Dynamic Linq to work. I
I'm using jQGrid and I'm wondering if there is a way to get the
I am using a custom formatter for my jqGrid columnModel and I can't get
I'm using the jQuery plugin that generates interactive tables called jqGrid . I want
I'm using jqGrid for a JIRA plugin and have included the jquery and jqgrid
I am using the latest version of jqGrid : 3.6.4 This seems like a
I am using jqGrid 3.6.4 and a jquery 1.4.2 . in my sample i

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.