Column to display is not working in serverside processing of datatable

Column to display is not working in serverside processing of datatable

kuresh91kuresh91 Posts: 2Questions: 0Answers: 0

I have developed a table by using server side processing of datatable and i m using a column toggle using jquery mobile, when i want to hide a perticular column only header is hiding not the whole column, Pls help me out, I require it very urgent Thanks In advance
My code is this
this is the table

x Drawing No Sht Rev Location Title Type Discipline Project Date State Office Originator Vendor Contract

This is the Jquery

    $('#example').dataTable( {
    "Processing": true,
    "serverSide": true,
    "iDisplayLength":50,
    "aLengthMenu": [[10, 20, 30,50,100,200,300,500, -1], [10, 20, 30,50,100,200,300,500, "All"]],
    "ajax": {
    "url": "scripts/server_processing.php",
    "data": function ( d ) {
        d.cmd="<?php $cmd = isset($_REQUEST['cmd'])?$_REQUEST['cmd']:"" ; echo $cmd; ?>";
        }
    },
    "aoColumns": [
        { "sClass": "center",
            "mData":null,
            "mRender": function (data, type, full) {
                return '<input type="checkbox" class="companyUser"  value="' + data[15] + '">';
            }
        },
        { "mData":"0" },{ "mData":"1" },{ "mData":"2" },{ "mData":"3" },{ "mData":"4" },{ "mData":"5" },{ "mData":"6" },{ "mData":"7" },{ "mData":"8" },{ "mData":"9" },{ "mData":"10" },{ "mData":"11" },{ "mData":"12" },{ "mData":"13" }],
    "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
    var myLink = "viewer_search.php?cmd=check_viewer&path='"+aData[14]+"'&dwg='"+aData[0]+"'" // The column in the DATA object with the URL. Change as needed.

    if (myLink.length > 0) {
    /* eq(0) defines the VISIBLE column that will be clickable. Change this as needed, or make it into a reusable variable */
      $('td', nRow).addClass('clickable').not(':eq(0)').click(function() {
         window.open(myLink,'Configuration Window','width=600,height=390,resizable = 1');
        return false;
      });
    }
     return nRow;

    }

    });

Replies

This discussion has been closed.