Issue with adding new rows to existing groups

Issue with adding new rows to existing groups

spectreDaspectreDa Posts: 7Questions: 2Answers: 0
edited April 1 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: 8,661Questions: 0Answers: 1,449

    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 1

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

  • colincolin Posts: 8,661Questions: 0Answers: 1,449

    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: 8,661Questions: 0Answers: 1,449

    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

Sign In or Register to comment.