Why is data[0] showing in control column?

Why is data[0] showing in control column?

asleasle Posts: 96Questions: 28Answers: 0

Responsive table and server-side data. In my server-side script I have table column "ID" that I use other places. But this id - data[0] shows up when my table shows the responsive trigger. How do I avoid that?

Here is a snippet of my code:

 responsive: {
            details: {
                type: 'column'
            }
        },
        processing: true,
        serverSide: true,
        ajax: 'ajax/server_processing.php',
       columnDefs: [
        {   className: "senter", "targets": [ 8,9,10 ] }, 
        {
            className: 'control',
            orderable: false,
            targets:   0,
        }, 
        {
            targets: [ 11 ],
            visible: false,
            searchable: true
           },
         ],
        order: [ 7, 'desc' ],  

See the column ID (data[0]) shows behind the trigger:

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @asle ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.