Issue with adding new rows to existing groups

Issue with adding new rows to existing groups

spectreDaspectreDa Posts: 7Questions: 2Answers: 0
edited April 2020 in Free community support

Hi,
I want to insert new rows to existing groups(rowGroups plugin). The Issue occures when I try to insert more then one
row to existing group. http://live.datatables.net/yewovira/1/edit
I can add only one row onClick.

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    That fiddle is killing my browser! Are you able to slim it down so the minimum code possible demonstrates the issue, please?

    Colin

  • spectreDaspectreDa Posts: 7Questions: 2Answers: 0
    edited April 2020

    I fixed that, it's lightweight version. Please, help mi with this problem.
    https://jsbin.com/hikacodifi/2/edit?js,outpu

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Wow, that's still many pages of code - I can't make head or tail out of it! It looks like you're adding the row within the rowGroup.startRender function, though I'm not sure - if so, this would mean DataTables has no knowledge of it - use row.add() instead,

    Colin

  • spectreDaspectreDa Posts: 7Questions: 2Answers: 0

    Is there any option to add new row to existing group and update this group?

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    You don't add to groups as such - a group is just a collection of rows with a common value. If you add a row to the table, where that common value is the same, it will be added to the group.

    Colin

This discussion has been closed.