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

The Archive Base Latest Questions

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

jqGrid edited row id needs to be refreshed after save from id returned in

  • 0

jqGrid edited row id needs to be refreshed after save from id returned in response.
I tried code below but undefined message box appears.

How to update row id ?
How to get response text after row is updated by Save action button ?

Andrus

grid.jqGrid({
  colModel: [{name:_actions,width:45,
  formatter:"actions",
  formatoptions:
    {keys:true,
     delbutton:false,
     onSuccess:function (rowID, response) {
      alert(response);             
      $("#" + rowID).attr("id", response.responseText);
      },

    onEdit: function (rowID) {
     if (typeof (lastSelectedRow) !== 'undefined' && rowID !== lastSelectedRow)
       cancelEditing($('#grid'));
       lastSelectedRow = rowID;
     }
}}
  • 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:34:04+00:00Added an answer on May 25, 2026 at 6:34 am

    I don’t want to go back to our old discussion, but I just want to remind that the changing of id is not good practice.

    You can try to solve the problem by placing of $("#" + rowID).attr("id", response.responseText); inside of setTimeout. In the case the changing will be done after processing of the old id in inline editing code.

    Moreover you could verify the following. In can be important to rename id in some other places saved by jqGrid internally. For example, selrow and selarrrow where the ids of selected rows will be hold.

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

Sidebar

Related Questions

it states in jqgrid documentation that the code below should allow local sorting with
jQgrid row is edited using inline editing mode. Pressing Enter sends data to server
jqGrid inline edit starts on single in click by onSelectRow event below. Save and
I'm trying to create a jqgrid, but the table is empty. The table renders,
jqgrid is used to show stock status from server. Data is retrieved in json
jqGrid tree nodes are read from server using json data. Click in node reads
jqGrid contains action formatter and boolean posted columns. I tried to hide Delete action
Our jqGrid is working well - if we return > 1 row everything works.
My jqGrid gets its JSON data from a URL. It shows every columnt right
From JQGrid , on Double Click I am trying to navigate the user 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.