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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:32:50+00:00 2026-06-08T21:32:50+00:00

This question is specific to jqGrid. I learned that we can use .jqgrow item

  • 0

This question is specific to jqGrid. I learned that we can use .jqgrow item with mouseover event to retrieve the row information like the following:

gridComplete: function () {
  $('.jqgrow').mouseover(function(e) {
    var rowId = $(this).attr('id');
    console.log('You rolled over ' + rowId);
  });
}

My question is how can we retrieve the column information, cell name information and cell content information in such an event. Thanks in advance.

  • 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-08T21:32:52+00:00Added an answer on June 8, 2026 at 9:32 pm

    First of all you don’t need to bind mouseover on every row. It’s enough to bind the event once on the whole grid body. The e parameter of the event has target property which are initialized to the object which is the origin of the mouseover event. So you can use jQuery.closest to find the <td> and <tr> elements which are in the current context. In the way you save memory and improve a little the performance of the solution.

    The demo shows how all works in jqGrid. The code which are used is

    var cm = $grid.jqGrid('getGridParam', 'colModel');
    $grid.mouseover(function(e) {
        var $td = $(e.target).closest('td'), $tr = $td.closest('tr.jqgrow'),
            rowId = $tr.attr('id'), ci;
        if (rowId) {
            ci = $.jgrid.getCellIndex($td[0]); // works mostly as $td[0].cellIndex
            if (console) {
                console.log('You rolled over the row with id="' + rowId +
                   '" in the column ' + cm[ci].name);
            }
        }
    });
    

    The output which will be produced by the demo looks like the following

    LOG: You rolled over the row with id="10" in the column note 
    LOG: You rolled over the row with id="10" in the column ship_via 
    LOG: You rolled over the row with id="9" in the column ship_via 
    LOG: You rolled over the row with id="8" in the column ship_via 
    LOG: You rolled over the row with id="8" in the column total 
    LOG: You rolled over the row with id="7" in the column total 
    LOG: You rolled over the row with id="7" in the column tax 
    LOG: You rolled over the row with id="6" in the column tax 
    LOG: You rolled over the row with id="6" in the column amount 
    LOG: You rolled over the row with id="5" in the column amount 
    LOG: You rolled over the row with id="4" in the column amount 
    LOG: You rolled over the row with id="4" in the column invdate 
    LOG: You rolled over the row with id="3" in the column invdate 
    LOG: You rolled over the row with id="3" in the column name 
    LOG: You rolled over the row with id="2" in the column name 
    LOG: You rolled over the row with id="1" in the column name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a more specific question to follow up on [another question that I
Simply - I can't find an answer to this specific question and my jquery/js
I apologize in advance if this question is too specific, but I think that
This question is specific to the iMacros suite in particular. What is the best
Sorry since this question is specific to my problem. While learning reflections i did
i have this specific question to do to you, i have a database from
This question may seem a little bit stackoverflow-implementation specific, but I have seen a
(This question does not rely on a specific IoC framework, so the interfaces and
This question is kind of related to another question but I have a specific
This question is a duplicate of 1042830 , but MonoTouch-specific. Is there a way

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.