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

  • Home
  • SEARCH
  • 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 6469977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:03:22+00:00 2026-05-25T06:03:22+00:00

If jqGrid row ids (passed as separate id property from json data in server)

  • 0

If jqGrid row ids (passed as separate id property from json data in server) are different only by case, inline edit is not started properly:

double clicking in second row puts first row in inline edit mode.
How to make jqgrid row ids case sensitive ?

Data read from server is:

{"total":1,"page":1,"records":2,"rows":[

{"id":"arvelduste_20seis","cell":[null,"arvelduste seis"]},
{"id":"Arvelduste_20seis","cell":[null,"Arvelduste seis"]}

]}
  • 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-25T06:03:22+00:00Added an answer on May 25, 2026 at 6:03 am

    It seems for me as a bug in Internet Explorer. In the official Document Object Model HTML standard I could found the following description about the namedItem method intensively used by jqGrid:

    This method retrieves a Node using a name. With [HTML 4.01] documents,
    it first searches for a Node with a matching id attribute. If it
    doesn’t find one, it then searches for a Node with a matching name
    attribute, but only on those elements that are allowed a name
    attribute. With [XHTML 1.0] documents, this method only searches for
    Nodes with a matching id attribute. This method is case insensitive in
    HTML documents and case sensitive in XHTML documents.

    So the namedItem method should works case sensitive in XHTML documents. On the other side like you can test in the demo, which use only pure DOM without jQuery or jqGrid, the method work case insensitive in Internet Explorer.

    The HTML code of the demo is following:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>http://stackoverflow.com/questions/7230179/how-to-allow-to-use-case-sensitive-row-ids-in-jqgrid/7236985#7236985</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
        <table id="t">
            <tbody>
                <tr id="x"><td>1</td></tr>
                <tr id="X"><td>2</td></tr>
            </tbody>
        </table>
        <script type="text/javascript">
            'use strict';
            var mytable = document.getElementById("t"),
                tr1 = mytable.rows.namedItem("x"),
                tr2 = mytable.rows.namedItem("X"),
                tr3 = document.getElementById("x"),
                tr4 = document.getElementById("X");
            alert("getElementById works " + (tr3.id === tr4.id ? "case insensitive (BUG!!!)": "case sensitive") +
                  "\nnamedItem works " + (tr1.id === tr2.id ? "case insensitive (BUG!!!)": "case sensitive"));
        </script>
    </body>
    </html>
    

    The Internet Explorer shows that namedItem("X") returns the row with the id=”x” instead of the row having id=”X”. The same bug not exist in all other (non-Microsoft) web browsers where I tested it.

    I can’t suggest you currently no workaround. You should just organize you program so that you will not use case sensitive ids inside of tables (and with jqGrid).

    UPDATED: Just a little more additional information.

    I made an official support request to Microsoft about the described subject. Microsoft confirmed that it was a bug in Internet Explorer, but the bug will be not fixed in the current Internet Explorer versions, but it will be probably fixed in IE10. As a workaround 🙂 it was suggested not to use ids which distinguish only in case. So just not use the ids which can reproduce the bug. So we have at the end results as I supposed before in my previously comments.

    Nevertheless, because the response confirmed that it was a bug, the request to Microsoft was for free for me (:-)).

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

Sidebar

Related Questions

How I can retrieve data from jqgrid row, if I have only the number
jQgrid row is edited using inline editing mode. Pressing Enter sends data to server
I need to submit all selected JQGrid row ids to the server. var rows
I am having an issue with the using jqGrid with JSON data returned from
I can see from the jqGrid JSON data being posted to the browser that
My requirement is, If I click a row in jqgrid with inline edit feature.
I am looking to drag a row from the jqGrid I have created and
In a JQGrid grid, when you select a row and press the edit button,
I need help display data in the jqGrid footer row. This is my configuration
Some quick searching only turns up adding a new row to a jQGrid via

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.