How we get row count on row grouping

How we get row count on row grouping

rishirishi Posts: 1Questions: 0Answers: 0
edited November 2012 in Plug-ins
I want to show the count for rowgroup in the row header itself as like as the count shown in filtering and sorting

Replies

  • MikeSMikeS Posts: 113Questions: 1Answers: 0
    http://jquery-datatables-row-grouping.googlecode.com/svn/trunk/customization.html
  • atopileratopiler Posts: 2Questions: 0Answers: 0
    Is there a way to sort the groups by the number of rows found in each group?
  • cyberpùcyberpù Posts: 2Questions: 0Answers: 0
    I have a solution for you
    I use a row grouping of DataTable : http://datatables.net/release-datatables/extras/FixedColumns/row_grouping.html
    I just add a function "function foo(arr){" to add a number of row.
    [code]
    $(document).ready(function() {
    /*
    * Initialse DataTables, with no sorting on the 'details' column
    */
    var oTable = $('#tab_contact').dataTable( {

    "fnDrawCallback": function ( oSettings ) {
    if ( oSettings.aiDisplay.length == 0 )
    {
    return;
    }

    var nTrs = $('#tab_contact tbody tr');
    var iColspan = nTrs[0].getElementsByTagName('td').length;

    var sLastGroup = "";

    /* I create a table with all group name */
    var tab = new Array();
    for ( var i=0 ; i
This discussion has been closed.