In Views form (field 'Style options') there is text from the standard table style:

Place fields into columns; you may combine multiple fields into the same column. If you do, the separator in the column specified will be used to separate the fields.

But in the case of DataTables this is wrong – it complains about the wrong number of TD's in the table.

Comments

duellj’s picture

Status: Active » Fixed

Fixed in next dev release

dpopov’s picture

It doesn't complain now, but it also doesn't work – it just disappears when there are two fields in the same column or when one field is excluded from display.

duellj’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

Are you using the latest dev version? You might need to pull the code out of CVS to get the latest version.

dpopov’s picture

Are you using the latest dev version?

Yes, I think so. It's July 30, 2010 - 16:05 with datatables.module 1.3.2.2.

Which version of jQuery plugin should be used? I tried 1.6.2 and 1.7 beta 6 – they don’t work with multiple fields in the same column. Version 1.5.6 works, but have some problems (it seems, that default sort column is calculated wrong, and when it is last column, then default number of entries displayed is 100, not 10).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

broncomania’s picture

This issue is still open. I had a similar problem. I have multiple coloumns and some are integrated.Datatable is still throwing errors of the different coloumns.

broncomania’s picture

Assigned: Unassigned » broncomania
Status: Closed (fixed) » Needs review

So I take a look into the module and found a bug
In the database.module look at row 209

        $column_options['bSortable'] = TRUE;
      }
      $datatable_options['aoColumns'][] = $column_options;

      // Save header columns for use in expandable hidden rows.

This must be changed to

        $column_options['bSortable'] = TRUE;
        $datatable_options['aoColumns'][] = $column_options;
      }

      // Save header columns for use in expandable hidden rows.

if not u get the wrong amount of td if u combine fields.

Greetings Bronco

  • duellj committed de03c53 on 7.x-1.x, 7.x-2.x
    #868390: Fixes table column grouping #868378: Attempts to autodetect...
dqd’s picture

Assigned: broncomania » Unassigned
Issue summary: View changes
Status: Needs review » Closed (outdated)