rowsgroup plugin not working
rowsgroup plugin not working

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
This discussion has been closed.
Answers
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 usingrowGroup.dataSrc
. Also note that the Datatables rowGroup extension does not have ans
- itsrowGroup
notrowsGroup
.rowsGroup
is for a third party extension.Kevin
Thanks Kevin,
Ihave changed the confif to rowGroup.dataSrc but still its not grouping.PFB the jsfiddle
http://jsfiddle.net/6wk0eg3j/2/
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
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/
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
If you could give steps on how to reproduce, that would be helpful,
Cheers,
Colin
Your fiddle (yesterday) shows you are still using RowsGroup. That is third-party code not supported by DataTables.
The official DataTables extension is RowGroup.
Thanks Everyone,
Actually i moved the code from rowsgroup to rowgroup and its working fine, Thanks for the help