Checkboxes twice times

Checkboxes twice times

JochenKJochenK Posts: 78Questions: 13Answers: 0
edited August 13 in Free community support

Link to test case:
https://jsfiddle.net/bw732eqo/

Description of problem:

You van see in the testcase that the Checkbox "allk05ziel" is twice.
The reason ist the Script in "iNetScriptk01.js":

$.extend($.fn.dataTable.defaults, {
  scrollX: true,
 });
 $('table.display').dataTable();

When i set the last line at the beginning only one Checkbox is shown.

Is that a bug or normal?

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • kthorngrenkthorngren Posts: 22,237Questions: 26Answers: 5,115

    Adding datatables.css resolves the issue:
    https://jsfiddle.net/5068p91d/

    When using scrolling features Datatables clones the header and hides the original to help facilitate scrolling. Without the CSS you see both the cloned and original.

    Kevin

Sign In or Register to comment.