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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:55:53+00:00 2026-06-11T15:55:53+00:00

My jqgrid inline edit works initially, but then after the first edit the edited

  • 0

My jqgrid inline edit works initially, but then after the first edit the edited row becomes unclickable and grey. How can I make it so I can edit the same row numerous times?

jQuery(document).ready(function(){
var lastsel;
var grid = jQuery("#list").jqGrid({

    url:'uploads/get_data.xml',
    datatype: 'xml',
    mtype: 'GET',
    colNames:['id', 'IRD', 'DLN', 'Start day', 'Start month', 'Start Year', 'End day', 'End month', 'End year', 'Sales', 'Zerorated', 'Debit adjust', 'Purchases', 'Credit adjust'],
    colModel:[
        {name: 'id', index: 'id', hidden: true, editable: false },
        {name: 'irdnum', index: 'irdnum', width: 150, editable: true, editrules:{ number:true },search:true, stype: 'text' },
        {name: 'dln', index: 'dln', width: 150, editable: true },
        {name: 'gstperiodstarting_day', index: 'gstperiodstarting_day', width: 20, editable: true, editrules:{ number:true } },
        {name: 'gstperiodstarting_month', index: 'gstperiodstarting_month', width: 20, editable: true, editrules:{ number:true } },
        {name: 'gstperiodstarting_year', index: 'gstperiodstarting_year', width: 50, editable: true, editrules:{ number:true } },
        {name: 'gstperiodending_day', index: 'gstperiodending_day', width: 20, editable: true, editrules:{ number:true } },
        {name: 'gstperiodending_month', index: 'gstperiodending_month', width: 20, editable: true, editrules:{ number:true } },
        {name: 'gstperiodending_year', index: 'gstperiodending_year', width: 50, editable: true, editrules:{ number:true } },
        {name: 'sales', index: 'sales', width:100, editable: true, editrules:{ number:true } },
        {name: 'zerorated', index: 'zerorated', width: 100, editable: true, editrules:{ number:true } },
        {name: 'debitadjust', index: 'debitadjust', width: 100, editable: true, editrules:{ number:true } },
        {name: 'purchases', index: 'purchases', width:100, editable: true, editrules:{ number:true } },
        {name: 'creditadjust', index: 'creditadjust', width: 100, editable: true, currency: true, editrules:{ currency:true } }
    ],
    pager: '#pager',
    rowNum:50,
    rowList:[50,100,200],
    sortname: 'created_at',
    sortorder: 'asc',
    viewrecords: true,
    height: 500,
    scrollrows: true,
    rownumbers: false,
    caption: 'Uploaded Data',
    editurl: 'uploads/set_data.xml',

    onSelectRow: function(id){
        if(id && id!==lastsel){
            $('#list').restoreRow(lastsel);
            $('#list').editRow(id,true);
            lastsel=id;

        }
    },
});
jQuery('#list').navGrid('#pager',
    {view:true, edit:false, del:true, search:false, refresh:true, add:true},{closeAfterAdd: true},{},{},{closeAfterSearch: true}, {}) 

jQuery('#list').navButtonAdd('#pager', {caption:"", title:"Toggle Search Toolbar", buttonicon :'ui-icon-search', onClickButton:function(){ grid[0].toggleToolbar() } })
grid.filterToolbar();grid[0].toggleToolbar()

I’m thinking maybe I need to reload the entire grid after the edit? Would that work and how would I do so?

  • 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-11T15:55:54+00:00Added an answer on June 11, 2026 at 3:55 pm

    I think you should write :

       onSelectRow: function(id){
           if(id && id!==lastSel){ 
              $('#list').restoreRow(lastSel); 
              lastSel=id; 
           }
           $('#list').editRow(id, true); 
       },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering how I can trigger reloadGrid after an inline edit of a row.
jQgrid row is edited using inline editing mode. Pressing Enter sends data to server
My requirement is, If I click a row in jqgrid with inline edit feature.
I used jqgrid inline-edit feature in my project, when I was editing a row,
I am trying to use jqgrid inline edit function. But I got the whole
If row is saved in inline edit in jqGrid, FireFox makes grid dim (
jqgrid edit and add forms coontain textareas which can edited and enter adds new
i starter in jqgrid, i want implement inline edit in jqgrid i have this
I am using jqgrid and using the inline editing mode and can't figure out
Does anyone know if jqGrid inline editing throws events that can be handled? The

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.