fnRowCallback is not recognized...
fnRowCallback is not recognized...
nasir
Posts: 1Questions: 0Answers: 0
I am in new in DataTables impelementation, following is creating prblem for me: Please let me know what is the correct way/location to call a function.
function initDataTable() {
alert("basePath = "+"#{appBean.basePath}");
var oEmployeesTable = myVersion("#studentLib").dataTable({
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bProcessing" : true,
"bServerSide" : true,
"sAjaxSource" : "#{appBean.basePath}CATCmaStudentLibManagementServlet",
"aoColumns" : [
{"mData": "author" },
{ "mData": "title" },
{ "mData": "type"},
{ "mData": "brand" },
{ "mData": "version" },
{ "mData": "launch.language"},
{ "mData": "actions" },
]
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td:eq(1)', nRow).html('' +
aData.Brand + '');
return nRow;
}
});
}
at the line "fnEowCallback", i am getting an "unexpected string". Please correct me.
Thanks in advance.
function initDataTable() {
alert("basePath = "+"#{appBean.basePath}");
var oEmployeesTable = myVersion("#studentLib").dataTable({
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bProcessing" : true,
"bServerSide" : true,
"sAjaxSource" : "#{appBean.basePath}CATCmaStudentLibManagementServlet",
"aoColumns" : [
{"mData": "author" },
{ "mData": "title" },
{ "mData": "type"},
{ "mData": "brand" },
{ "mData": "version" },
{ "mData": "launch.language"},
{ "mData": "actions" },
]
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td:eq(1)', nRow).html('' +
aData.Brand + '');
return nRow;
}
});
}
at the line "fnEowCallback", i am getting an "unexpected string". Please correct me.
Thanks in advance.
This discussion has been closed.