Author Topic: I Can't batch editing when groping rows  (Read 1668 times)

darioup

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 4
  • Webmaster Creativo
    • View Profile
I Can't batch editing when groping rows
« 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??

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: I Can't batch editing when groping rows
« Reply #1 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.