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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:53:24+00:00 2026-05-13T21:53:24+00:00

It is possible to use the getRowData method to retrieve the current of a

  • 0

It is possible to use the getRowData method to retrieve the current of a cell but this retrieves the current cell content rather than the original data before it went through the formatter.

How do I retrieve the original content before the formatting transformations are applied? FYI I am populating the table using JSON.

  • 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-13T21:53:25+00:00Added an answer on May 13, 2026 at 9:53 pm

    I had to dig through the documentation a bit to come up with the solution, to see it in its original context go here: jqGrid Data Manipulation, specifially the section near the end titled “User Data”.

    First, modify your jsonReader implementation as follows:

     jsonReader: {
          root: 'Data',
          page: 'Page',
          total: 'Total',
          records: 'Records',
          userdata : 'Data',
          repeatitems: false,
          id: 'Id'
     }
    

    Note the userdata option set to the same as root ‘Data’

    In my case I needed to retrieve the original row data when the user selected a row. I implemented this as follows:

     onSelectRow: function(rowid) {
                        processRow(rowid);
                    }
    

    To retrieve the data within the process row method I have the following:

    var rowData = $("#resultGrid").getGridParam('userData')[rowId - 1];
    

    Where #resultGrid is a reference to my jqGrid.

    This will then return the original data bound to that row before any formatting was applied.

    A couple of points to note:

    1. In my case the grid is paged so the result set is never greater than 10 items therefore the ‘userdata’ wont grow too large
    2. Sorting is performed server side so that index rowId will always return the correct value from ‘userData’
    3. While ‘userdata’ as referenced as an option on jsonReader is all lower case, to retrieve it using getGridParam you need to reference it as ‘userData’
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The original use case: This is a possible use case I'm trying to solve:
Is it possible use a MySQL query to perform this kind of check? If
is it possible use Jenkins to create an EAR file for manual deployment? This
Possible Duplicate: Use of 'prototype' vs. 'this' in Javascript? I went to various websites
Possible Duplicate: Use of 'prototype' vs. 'this' in Javascript? I am confused with these
what could be a possible use of declaring types within a namespace but not
Is it possible use in-explicit constructing with operators ? Just like in this example
Possible Duplicate: Use of .apply() with 'new' operator. Is this possible? I have 5
Possible Duplicate: Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?
Is it possible use RESTKit with ASIHTTPRequest? I have been using ASIHTTPRequest but it

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.