Unable to hide my table column(4th col i.e RoleID ),plz help
Unable to hide my table column(4th col i.e RoleID ),plz help
var oCBFCRatings = $("#tblRole").DataTable({
"pagingType": "full_numbers",
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false,
"responsive": true,
"sAjaxSource": "/Role/RoleList",
"aoColumns":
[
{ "mData": "Code" },
{ "mData": "Name"
},
{
"mData": "IsActive",
"orderable": false,
"mRender": function (data, type, val) {
var Status=getColumn1Value(data);
return '<span>' + Status + '</span>';
},
},
{
"mData": null,
"orderable": false,
"mRender": function () {
return '<span data-toggle="modal" onclick="return ShowForm1(this)" class="btn bg-blue btn-flat"><i class="glyphicon glyphicon-edit"></i></span> | <span data-toggle="modal" onclick="return DeleteRow(this)" class="btn bg-red btn-flat" ><i class="fa fa-trash-o"></i></span>';
}
},
{
"mData":"RoleID",
"orderable": false,
"bVisible": false
}
],
"order": [[ 1, "asc" ]]
});
and my table is ..
Code | Name | Is Active | Action | Role ID |
---|
Replies
Can you format the post first? Id be happy to help