Only one column has coloring

Only one column has coloring

kevinhtrekevinhtre Posts: 3Questions: 0Answers: 0
edited February 2014 in General
I'm using the most basic setup possible. 3 columns. Sorting, filtering. I did add css row highlighting for hovering, but this problem happened before that. Only one column at a time gets any coloring and I'm not even sure how that one row is happening, much less why it's only 1.

// Table settings.
$attributes['datatable_options'] = array(
'bFilter' => TRUE,
'bInfo' => TRUE,
"bProcessing" => TRUE,
'iDisplayLength' => 25,
);
// Define table columns
$header = array(
array(
'data' => t('Email'),
'datatable_options' => array(
'bSortable' => TRUE,
'bSearchable' => TRUE,
),
),
array(
'data' => t('First Name'),
'datatable_options' => array(
'bSortable' => TRUE,
'bSearchable' => TRUE,
),
),
array(
'data' => t('Last Name'),
'datatable_options' => array(
'bSortable' => TRUE,
'bSearchable' => TRUE,
),
),
);

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Please link to a test case.

    Allan
  • kevinhtrekevinhtre Posts: 3Questions: 0Answers: 0
    Sure thing:

    http://realestateisgreat.net/node/617
  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    DataTables' CSS applies colour according to the currently sorted column. Read the docs on styling.
  • kevinhtrekevinhtre Posts: 3Questions: 0Answers: 0
    okay, thanks. all of the examples have the coloring on the entire table so i was confused. thanks for the time.
This discussion has been closed.