Maximum call stack size exceeded. The error when using rowsgrouping plugin.

Maximum call stack size exceeded. The error when using rowsgrouping plugin.

ShaibaazSShaibaazS Posts: 7Questions: 3Answers: 0
edited June 2017 in Free community support

First time when the data is generated with Data parameter the DataTable & rowsGroup loads perfectly. When I make a ajax call to get new Data for the DataTable, I do ".clear()" & ".destroy()" and repopulate the DataTable. But my page Hangs and I face this error "Maximum call stack size exceeded". After 5-10 secs the DataTable loads with the new data and rows group modifications. I have tried with all possbile solutions but getting the same Error.
Hoping for a reply.

''' https://github.com/ashl1/datatables-rowsgroup/ '''

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    edited June 2017

    You should really address this to the author of the plug-in.

  • nikhilsheth2049nikhilsheth2049 Posts: 17Questions: 4Answers: 0

    Face same problem

    Found tricky solution for the same.
    1. do not use destory
    2. for reinit, first clear table using <tableObject>.clear()
    3. then add rows using <tableObject>.rows.add(<tableDatas>).draw()

This discussion has been closed.