RowGroup not accepting array as dataSrc

RowGroup not accepting array as dataSrc

hovhov Posts: 15Questions: 2Answers: 0

Hi guys!

I am having trouble with rowGroup().dataSrc(prop). It is not accepting array as prop. I have been reading that since RowGroup v1.1.0 it is possible to set this value to be an array and I have v1.1.2 of RowGroup plugin.

        $('button.group-by').on( 'click', function (e) {
            e.preventDefault();
            groupColumn = $(this).data('column');
            var src = [groupColumn, groupColumn2];
            table.rowGroup().dataSrc(src);
        } );

I get c[k] is undefined in my console after this code is executed. Does anyone have any idea why is that?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • hovhov Posts: 15Questions: 2Answers: 0
  • hovhov Posts: 15Questions: 2Answers: 0

    @colin, I don't know if I painted a good enough picture. If I need to make a test case with more data or more thoroughly explain the problem I can do it, no problem. I am new to this community and I love it. I can't express enough gratitude for you guys! Such a powerful software for free.

    Thanks in advance!

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This is the same cause as your other thread, see my reply there.

    Colin

This discussion has been closed.