rowsgroup plugin not working

rowsgroup plugin not working

senjujosesenjujose Posts: 8Questions: 4Answers: 0
edited August 2019 in Free community support

I am using RowGroup 1.0.1 to span the identical rows. But unfortunately its not working. PFB the jsfiddle link. Could you please look into this issue
http://jsfiddle.net/6wk0eg3j/1/

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,299Questions: 26Answers: 4,769
    edited August 2019

    Looks like you are using the incorrect rowGroup config options. Take a look at this example:
    https://datatables.net/extensions/rowgroup/examples/initialisation/simple.html

    Instead of using 'rowsGroup': [0,1,2,3], you need to define the columns to group by using rowGroup.dataSrc. Also note that the Datatables rowGroup extension does not have an s - its rowGroup not rowsGroup. rowsGroup is for a third party extension.

    Kevin

  • senjujosesenjujose Posts: 8Questions: 4Answers: 0

    Thanks Kevin,
    Ihave changed the confif to rowGroup.dataSrc but still its not grouping.PFB the jsfiddle
    http://jsfiddle.net/6wk0eg3j/2/

  • kthorngrenkthorngren Posts: 20,299Questions: 26Answers: 4,769

    Looks like the biggest issue was the old version of Datatables (1.10.4) that you were using. Plus you aren't loading the Datatables and rowGroup CSS. Also you need to order the table by the columns you want rowGroup to work with.

    http://jsfiddle.net/yvb9qmau/2/

    Kevin

  • senjujosesenjujose Posts: 8Questions: 4Answers: 0

    Thanks Kevin,

    It was so helpfull. But the requirenment for me is to span the entire row for which the values are getting duplicated in columns [0,1,2,3]. PFB the jsfiddle.Is it possible to achieve the same view using rowGroup extension
    http://jsfiddle.net/9pm1saxv/1/

  • kthorngrenkthorngren Posts: 20,299Questions: 26Answers: 4,769

    Not sure I totally understand. Are you wanting to display duplicate rows as one row? If so that is not a function of rowGroup nor any other Datatables extension that I am aware of.

    Kevin

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    If you could give steps on how to reproduce, that would be helpful,

    Cheers,

    Colin

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394
    Answer ✓

    Your fiddle (yesterday) shows you are still using RowsGroup. That is third-party code not supported by DataTables.
    The official DataTables extension is RowGroup.

  • senjujosesenjujose Posts: 8Questions: 4Answers: 0

    Thanks Everyone,

    Actually i moved the code from rowsgroup to rowgroup and its working fine, Thanks for the help

This discussion has been closed.