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

I'm trying to create a jqgrid, but the table is empty. The table renders,
I have a jqGrid with say user information which is to be edited in
JQgrid outputs this html for a left aligned cell - but it is too
My jqGrid is work when my JSON data is in a static file, but
Our jqGrid is working well - if we return > 1 row everything works.
I've a jqGrid v3.7.2, after hiding a column using .jqGrid('hideCol', infoName); and setting the
Yesterday I was playing with jQGrid plugin and ASP.NET. Everything turned out well, my
Has anyone been able to implement the JQuery grid plugin, jqGrid? I'm trying to
I'm using jqgrid to display a list of sites and I want to do
The custom_value of place_id is set to whichever row I click first. Subsequent clicked

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.