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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:49:36+00:00 2026-05-27T17:49:36+00:00

We are upgrading both jQuery and jqGrid in a project and found a possible

  • 0

We are upgrading both jQuery and jqGrid in a project and found a possible bug in jqGrid.
The versions we are working with:

  • jQuery 1.4.1 upgraded to 1.7.1
  • jqGrid 3.8.2 upgraded to 4.2.0

We are using the colmodel’s index parameter both for sorting and searching/filtering. The problem we have found appears when the index string contains a dot. E.g. “Customer.Name”.

$('#grid').jqGrid({
  url: 'some/controller/action',
  datatype: 'json',
  colNames: ['Customer Name'],
  colModel: [{ name: 'CustomerName', index: 'Customer.Name' }]
});

$('#grid').jqGrid('filterGrid', '#filter',
{
  filterModel: [{ label: 'Customer Name', name: 'CustomerName', stype: 'text' }]
});

When the search is used the browser throws an exception as follows:

Syntax error, unrecognized expression: [name=Customer.Name]
http://localhost:8000/Scripts/jquery-1.7.1.js Line 4179

The exception is originating from row 465 in grid.addons.js which looks like this:

447: nm = this.index;
465: v = $("input[name="+nm+"]",self).val();

The code is inside an each operator and gets the value from the colModel/filterModel, so this is each element in that array.

After some research we found that in jQuery 1.5 the attribute selector requires quotes around the value, which the grid doesn’t seem to use and thus failing when searching for the element.

Question is:
Is there any workaround for this or should we post a bug to jqGrid and hope they fix it soon?

We have tried escaping the dot and surrounding the string with quotes, but nothing helps.

  • 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-27T17:49:37+00:00Added an answer on May 27, 2026 at 5:49 pm

    The module grid.addons.js contains the methods like filterGrid which are not more supported. Instead of that you can just place the searching information directly in the postData (see here for details)

    If you do want to use the code from grid.addons.js you have to maintain the code yourself. To solve your current problem you can use $.jgrid.jqID which escapes any meta-characters used inside of jQuery selectors. Try to replace

    v = $("input[name="+nm+"]",self).val();
    

    to

    v = $("input[name=" + $.jgrid.jqID(nm) + "]", self).val();
    

    I think it should solve the problem.

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

Sidebar

Related Questions

I'm currently upgrading my application to use jQuery 1.6.1 (previously using 1.4.4) and found
Prior to upgrading to JQuery 1.7.1, both vertical and horizontal slider were working fine.
I have problems after upgrading: jqGrid from 3.5.3 to 3.8.2 jquery from 1.3.2 to
I am using jQuery validator plugin, i stuck in a problem during validating images,
After upgrading to Ruby 1.9.3 (from 1.9.2 using system RVM) on Ubuntu 10.04.3, I
I have been using ClojureBox with great success to learn both Clojure and emacs.
I am upgrading my Windows Mobile 5 project to a Windows Mobile 6 project.
My project no longer compiles for the iOS 5.0 Simulator after upgrading to automatic
I have a project which references another project's dll. They both were in .net
I am upgrading project from 1.1 to 3.5. There are some references left to

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.