How do you remove/hide "Click to edit" when you are using editable?
How do you remove/hide "Click to edit" when you are using editable?
How do you hide "Click to edit", I tried place holder "", but did not work?
My json response:
[code]
{"sEcho":"1","iTotalRecords":3,"iTotalDisplayRecords":3,"aaData":[["100039","Test 2","","AK2013.004","","6/13/2013","--"],["100040","Test 3","","AK2013.005","","6/13/2013","--"],["100038","Test1","","AK2013.003","","6/12/2013","--"]]
[/code]
DataTables code:
[code]
var oTable = $('#auditList').dataTable({
"bServerSide": true,
"sAjaxSource": "@Url.Action("GetAgencyAudits", "Audit")",
"oLanguage": { "sZeroRecords": "No audits available", "sEmptyTable": "No audits available" },
"fnServerParams": function (aoData) {
aoData.push({ "name": "audit_id", "value": audit_id }
);
},
"bProcessing": true,
"iDisplayLength": 5,
"bLengthChange": false,
"bDestroy": true,
"bFilter": false,
"aoColumns": [
{ "sName": "Audit_ID",
"bSearchable": false,
"bSortable": true
},
{ "sName": "Audit_Title"},
{ "sName": "Audit_Status_Type"},
{ "sName": "Cops_Audit_Nr" },
{ "sName": "OIG_Audit_Nr"},
{ "sName": "Audit_Create_Date"},
{ "sName": "Audit_Update_Date"}
],
"sPaginationType": "full_numbers"
}).makeEditable({
placeholder : "",
sAddURL: addUrl,
sAddNewRowFormId: "auditForm",
sAddNewRowButtonId: "createAudit",
fnShowError: function (message, action) {
switch (action) {
case "update":
jAlert(message, "Update failed");
break;
case "delete":
jAlert(message, "Delete failed");
break;
case "add":
$("#lblAddError").html(message);
$("#lblAddError").show();
break;
}
},
fnStartProcessingMode: function () {
$("#processing_message").dialog();
},
fnEndProcessingMode: function () {
$("#processing_message").dialog("close");
oTable.fnDraw();
}
[/code]
My json response:
[code]
{"sEcho":"1","iTotalRecords":3,"iTotalDisplayRecords":3,"aaData":[["100039","Test 2","","AK2013.004","","6/13/2013","--"],["100040","Test 3","","AK2013.005","","6/13/2013","--"],["100038","Test1","","AK2013.003","","6/12/2013","--"]]
[/code]
DataTables code:
[code]
var oTable = $('#auditList').dataTable({
"bServerSide": true,
"sAjaxSource": "@Url.Action("GetAgencyAudits", "Audit")",
"oLanguage": { "sZeroRecords": "No audits available", "sEmptyTable": "No audits available" },
"fnServerParams": function (aoData) {
aoData.push({ "name": "audit_id", "value": audit_id }
);
},
"bProcessing": true,
"iDisplayLength": 5,
"bLengthChange": false,
"bDestroy": true,
"bFilter": false,
"aoColumns": [
{ "sName": "Audit_ID",
"bSearchable": false,
"bSortable": true
},
{ "sName": "Audit_Title"},
{ "sName": "Audit_Status_Type"},
{ "sName": "Cops_Audit_Nr" },
{ "sName": "OIG_Audit_Nr"},
{ "sName": "Audit_Create_Date"},
{ "sName": "Audit_Update_Date"}
],
"sPaginationType": "full_numbers"
}).makeEditable({
placeholder : "",
sAddURL: addUrl,
sAddNewRowFormId: "auditForm",
sAddNewRowButtonId: "createAudit",
fnShowError: function (message, action) {
switch (action) {
case "update":
jAlert(message, "Update failed");
break;
case "delete":
jAlert(message, "Delete failed");
break;
case "add":
$("#lblAddError").html(message);
$("#lblAddError").show();
break;
}
},
fnStartProcessingMode: function () {
$("#processing_message").dialog();
},
fnEndProcessingMode: function () {
$("#processing_message").dialog("close");
oTable.fnDraw();
}
[/code]
This discussion has been closed.
Replies
[quote]"placeholder" : ""[/quote]