rowGroup - data-sort has value rowGroup grouped row (gray) is empty

rowGroup - data-sort has value rowGroup grouped row (gray) is empty

kdpowellkdpowell Posts: 10Questions: 3Answers: 0

Just something I noticed... a bug? When my <td> has <td data-sort="a Text Value Here"> then the rowGroup header row value will not display... the row is just gray with no text.

With data-sort:

Without data-sort:

    $('#tblData').DataTable( {
        rowGroup: {
            dataSrc: 2
        }
    } );

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited May 2018 Answer ✓

    Hi @kdpowell ,

    Yep, it loads in the orthogonal data into an object, so you have to reference that like this (example here):

    dataSrc: '2.display'
    

    Apparently it's on the documentation TODO list... :)

    Cheers,

    Colin

  • kdpowellkdpowell Posts: 10Questions: 3Answers: 0

    Just an update -- @colin says "Apparently, it's on the documentation TODO list..."
    Well, today is June 6, 2018 and it appears this has moved from the TODO list to the DONE list (if there be one).
    dataSrc: '2.display' no longer works as a work-around
    dataSrc: '2' works perfectly.

    @colin -- please confirm.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited June 2018 Answer ✓

    Hi @kdpowell ,

    A change was made a couple of days ago to RowGroup but it shouldn't affect this - for me, as seen in this example here, using the nightly build still does the same as before.

    If you're seeing something different, could it be a code change on your end?

    Cheers,

    Colin

  • kdpowellkdpowell Posts: 10Questions: 3Answers: 0

    Hi @colin,
    Thanks for the info.
    To answer your question: "Most definitely" -- probably for sure. :blush:

This discussion has been closed.