Cell cannot be updated (Server error) ? mvc4 jquery datatables

Cell cannot be updated (Server error) ? mvc4 jquery datatables

sunildonsunildon Posts: 40Questions: 7Answers: 0
edited April 2014 in DataTables 1.9
Hi

As title stated i am facing the issue . Is there anywork around to know how to resolve and find the cause of issue .

Thing is when i use fnRender i am getting this error when i remove this the DATATABLE working cool .

My code :



$(document).ready(function () {

$.datepicker.regional[""].dateFormat = 'dd/mm/yy';
$.datepicker.setDefaults($.datepicker.regional['']);

var tab= $('#myDataTable').dataTable({

"bProcessing": true,
"bServerSide": true,
"sAjaxSource": 'AjaxDataProvider',
"bJQueryUI": true,
"aoColumns": [
{
"sName": "ID",
"bSearchable": false,
"bSortable": false
,
"fnRender": function (oObj) {
return 'View';
}
},
{ "sName": "COMPANY_NAME" },
{ "sName": "ADDRESS" },
{ "sName": "TOWN" }
]

});

tab.columnFilter({
sPlaceHolder: "head:after",
aoColumns: [
{
type: "date-range",
bRegex: true,
bSmart: true
},
{
type: "number-range"
},
{ type: "text" },

{ type: "text" }

]
});

tab.makeEditable({
"aoColumns": [
null,
null,
null,
{
indicator: 'Saving...',
tooltip: 'Click to select town',
loadtext: 'loading...',
type: 'select',
onblur: 'submit',
data: "{'London':'London','Liverpool':'Liverpool','Portsmouth':'Portsmouth','Edinburgh':'Edinburgh', 'Blackburn':'Blackburn','Kent':'Kent','Essex':'Essex','Oxon':'Oxon','Lothian':'Lothian','West Sussex':'West Sussex','Lanarkshire':'Lanarkshire','Birmingham':'Birmingham','East Sussex':'East Sussex','Surrey':'Surrey'}"
}]
});

});



Regards
This discussion has been closed.