rowGroup click

rowGroup click

blabablabablabablaba Posts: 47Questions: 19Answers: 0

Hello,

I am using rowGroup with a button appended to the group heading:

    rowGroup: {
        dataSrc: 'dirRootName',
        startRender: function( rows, group ){
            return $('<tr/>')
                .append( '<td/><td>/'+group+'/</td>' )
                .append( '<td colspan=100%><button class="dt-button editorAppend">Add Subdirectory</button></td>' )
        }
    }

I want a button click to provide the group_ID. I'm unsure as to how to get the group_ID as the function only offers group and not group_ID.

Any ideas?

Many thanks,

Steve

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    I'm not clear what you mean by group_ID? Is that the group value, or something else? If you could link to a test case or your own page, that would help our understanding.

    Colin

  • blabablabablabablaba Posts: 47Questions: 19Answers: 0
    edited November 2019

    Hi Colin,

    Thank you for your message.

    The group_ID is the ID associates with the group value. However, I have resolved the issue by interrogating rows. Thank you for your patience. I've marked it as answered.

    Steve

This discussion has been closed.