Referring to a slightly modified version of the jqGrid local editing demo by @Oleg located here: http://www.dataactive.net/local_editing.htm ... after deleting a single row using the trash can icon on the bottom toolbar or the Delete button The following error is shown on the top toolbar in Firebug: "NetworkError: 404 Not Found - http://www.dataactive.net/clientArray "
@ Can you find out why this is happening?
Now that this problem has been resolved with deleting a line, something else I am observing (bearing in mind that this is editing "local data"), when newly added rows are deleted, they do not seem to disappear. Consider the code myDelOptions from your demo (@Oleg), which I am trying to use in another script for production purpose:
myDelOptions = {
the calculateTotal() function, which iterates through the row object, simply accepts the numeric values of the row columns that remain, and recounts them into a footer row, but it happens that iterating through the grid row object shows that the “deleted” rows are still present in an array or something like that, and therefore it is impossible to calculate a new amount, because nothing has changed, the rows are not actually deleted. I don’t understand what actually happens when “delRowData” is used in the context of local data, but it seems to only “delete” the row from the visual grid, but it is still part of the row object. And even stranger, if you add another new line, the “deleted” lines will appear again exactly the same as in the new line. As you can see, I have refreshIndex[0] and trigger(reload) , but the line is not deleted if trigger("reload") is, and refreshIndex[0] does not work. Can anyone address this? Need extra code?
Jerry Of Perth
source share