ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: darioup on October 25, 2018, 06:47:54 pm

Title: I Can't batch editing when groping rows
Post by: darioup on October 25, 2018, 06:47:54 pm
Hi, I followed the batch editing demo and it works great when no grouping is involved.
When grouping everything looks fine but can't save changes.
I guess the error is on this line
Code: [Select]
data: {
        //JSON.stringify not required for PHP
        list: JSON.stringify( gridChanges )
},
When trying to save changes I receive the following errors:
Code: [Select]
Uncaught TypeError: Converting circular structure to JSON
    at JSON.stringify (<anonymous>)
    at saveChanges
other errors are shown if I remove JSON.stringify
Code: [Select]
data: {
        list: gridChanges
},
errors:
Code: [Select]
Uncaught RangeError: Maximum call stack size exceeded
    at Number.toString (<anonymous>)
    at Function.isPlainObject (jquery.min.js:2)
    at Function.r.extend.r.fn.extend (jquery.min.js:2)

What is the way to save/batch editing when grouping is involved??
Title: Re: I Can't batch editing when groping rows
Post by: paramvir on October 25, 2018, 09:22:14 pm
Batch editing doesn't work when row grouping in turned on.

You would need to turn it off before making any batch updates in the grid, and row grouping can be turned back on after the changes are committed.