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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:04:10+00:00 2026-05-24T06:04:10+00:00

Referring to a slightly modified version of a jqGrid local editing demo by user

  • 0

Referring to a slightly modified version of a jqGrid local editing demo by user @Oleg located here: http://www.dataactive.net/local_editing.htm
…after one row is deleted using either the rubbish bin icon in the lower toolbar or the Delete button on the top toolbar, the following error is given in Firebug:
“NetworkError: 404 Not Found – http://www.dataactive.net/clientArray”

@Oleg are you able to ascertain why this happens?

Now that that problem is solved with the row deletion, something else I observe (keeping in mind this is editing “local data”), when newly added rows are deleted they don’t seem to vanish. Consider the myDelOptions code from your demo (@Oleg) which I’m trying to use in another script for a production purpose:

myDelOptions = {
    // because I use "local" data I don't want to send the changes
    // to the server so I use "processing:true" setting and delete
    // the row manually in onclickSubmit
    onclickSubmit: function (options, rowid) {
        var grid_id = $.jgrid.jqID(grid[0].id),
            grid_p = grid[0].p,
            newPage = grid_p.page;

        // reset the value of processing option to true to
        // skip the ajax request to 'clientArray'.
        options.processing = true;

        // delete the row
        grid.delRowData(rowid);
        $.jgrid.hideModal("#delmod" + grid_id,
                          { gb: "#gbox_" + grid_id,
                              jqm: options.jqModal, onClose: options.onClose
                          });

        $("#list")[0].refreshIndex();

        setTimeout(function () {
            $("#list").trigger("reloadGrid", [{ current: true}]);
        }, 100);

        calculateTotal();

        if (grid_p.lastpage > 1) {// on the multipage grid reload the grid
            if (grid_p.reccount === 0 && newPage === grid_p.lastpage) {
                // if after deliting there are no rows on the current page
                // which is the last page of the grid
                newPage--; // go to the previous page
            }
            // reload grid to make the row from the next page visable.
            grid.trigger("reloadGrid", [{ page: newPage}]);
        }

        return true;
    },
    processing: true
};

the calculateTotal() function which iterates through the row object, simply takes the numeric values of the columns of the rows that remain and re-totals them to a summary footer row but what is happening is that iterating through the row object of the grid shows the “deleted” rows are still there, in the array or something, and so a new total cannot be calculated because nothing seems to have changed, the rows are not actually deleted. I don’t understand what actually happens when “delRowData” is used in context of local data but it appears to only “remove” the row from the visual grid but it is still part of the row object. And, stranger yet, if another new row is added, the “deleted” row(s) re-appear exactly as they were in addition to the new row. As you can see I have refreshIndex[0] and trigger(reload) but the row does not delete if trigger("reload") is there and refreshIndex[0] has no effect. Can anyone address any of this? Additional code required?

  • 1 1 Answer
  • 1 View
  • 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-24T06:04:10+00:00Added an answer on May 24, 2026 at 6:04 am

    You are right. Thank you! The trick on the example is to set processing: true as the part of myDelOptions. At the first delete operation is everything OK, but the value will be reset to processing: false by another part of the delGridRow method at the second call of it.

    The fix of the problem is very easy: one should just add additional line

    options.processing = true;
    

    inside of the onclickSubmit of the myDelOptions. See the modified demo here.

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

Sidebar

Related Questions

Referring to the Codeigniter user guide at http://codeigniter.com/user_guide/helpers/form_helper.html , I cannot seem to figure
Referring to the first answer about python's bound and unbound methods here, I have
Referring https://www.youtube.com/watch?v=xHXn3Kg2IQE . Can anybody provide source/links which implements such a design?
Referring to the answer by Jon Skeet here: Pass An Instantiated System.Type as a
Referring to this, http://docs.oracle.com/cd/B19306_01/server.102/b14220/transact.htm How the transactions are managed into the MySQL database. My
Referring to http://php.net/manual/en/language.oop5.static.php , Declaring class properties or methods as static makes them accessible
slightly related to this question here . My problem: I am writing a bit
Referring to the article here I created my .htaccess file with the following lines
Referring to question Spring Autowiring stopped working on GAE I ask: why doesn't AppEngine
Referring back to this SO post If there is a Grouping category Category which,

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.