hiding fnrender function(button) based on condition (data fron aocolumns"incidentstate")
hiding fnrender function(button) based on condition (data fron aocolumns"incidentstate")
'aoColumns': [
{ 'sTitle': 'SNO', 'mData': 'slno', 'sClass': 'essential' },
{ 'sTitle': 'Ticket No', 'mData': 'ticketnumber', 'sClass': 'essential' },
{ 'sTitle': 'Short Description', 'mData': 'shortdescription', 'sClass': 'essential' },
{ 'sTitle': 'Incident State', 'mData': 'incidentstate', 'sClass': 'essential' },
{ 'sTitle': 'Created Date', 'mData': 'created', 'sClass': 'essential' },
{ 'sTitle': 'Assigned to', 'mData': 'assignedto', 'sClass': 'essential' },
{ 'sTitle': 'Remarks History', 'mData': 'remarks', 'sClass': 'essential' },
{ 'sTitle': 'Clock', 'mData': 'clock', 'sClass': 'essential' },
{ 'sTitle': 'Totaltime Worked', 'mData': 'totaltimeworked', 'sClass': 'essential', "bSortable": false, "bVisible": false },
{ 'sTitle': 'Planned Due Date', 'mData': 'plannedduedate', 'sClass': 'essential' },
{ 'sTitle': 'Ticket History', 'mData': 'tickethistory', 'sClass': 'essential' },
//some logic for if condition
{ "fnRender": function (oObj) {
var userId= oObj.aData[oObj.iDataColumn]
//alert(userId);
return '<a id = open-modal data-toggle=modal href=#modal class=btn >' + 'Edit' + '</a>';
}
}
],