While loading how can I make Non Editable rows based on perticular column value Datatable/Jeditable
While loading how can I make Non Editable rows based on perticular column value Datatable/Jeditable
Hi,
Could you please someone help me on this. While loading how can I make Non Editable row based on perticular column value in the same row.
For Example: Employee Record with columns: EmpNo, EmpName, Designation.
While loading If Designation value = "CEO" then that perticular Employee record(Row) should not be Editable and all other records should be editable.
Thanks,
Ganesh
Could you please someone help me on this. While loading how can I make Non Editable row based on perticular column value in the same row.
For Example: Employee Record with columns: EmpNo, EmpName, Designation.
While loading If Designation value = "CEO" then that perticular Employee record(Row) should not be Editable and all other records should be editable.
Thanks,
Ganesh
This discussion has been closed.
Replies
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$(nRow).attr("id",aData[0]);
if(aData[2]== "CEO"){
$(nRow).class = "read_only";//Trying to make
} Row Non Editable
return nRow;
}
Could you please suggest me better way to make Non Editable row based on the Column value..?
Thanks,
Ganesh
Thanks,
Ganesh