mRender never called
mRender never called
nicolecoco02
Posts: 2Questions: 0Answers: 0
Hello,
Above all thanks for your work and sorry for my so bad english I am french.
I am experiencing issue using a mRender function.
I thought it was because of my code by i can't get it works with a really simple code too
Here the source code of my function
[code]
$(document).ready(function(){
$('.data-table').dataTable({
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'Ct<"F"fip>',
"bProcessing": true,
"sAjaxSource": "/process.php",
"bScrollInfinite": false,
"bScrollCollapse": false,
"aoColumnDefs": [
{
"mDataProp": "engine",
"mData": "engine",
"aTargets": [0],
"sTitle": "Engine",
"bSearchable": true,
"bSortable": true,
"bVisible": true,
"mRender": function ( data, type, full ) {
alert ("kikoo");
return 'Download';
}
},
{
"mDataProp": "version",
"mData": "version",
"aTargets": [1],
"sTitle": "OS Version",
"bSearchable": true,
"bSortable": true,
"bVisible": true,
"mRender": function ( data, type, full ) {
alert ("kikoo");
return 'Download';
}
},
{
"mDataProp": "platform",
"mData": "platform",
"aTargets": [2],
"sTitle": "OS Platform",
"bSearchable": true,
"bSortable": true,
"bVisible": true,
"mRender": function ( data, type, full ) {
alert ("kikoo");
return 'Download';
}
}]
});
[/code]
I am building my aoColumnDefs throught a foreach in php.
Here an excerpt og my data source
[code]
{"sEcho":1,"aaData":[{"engine":"Trident","browser":"Internet Explorer 4.0","platform":"Win 95+","version":"4","grade":"X"},{"engine":"Trident","browser":"Internet Explorer 5.0","platform":"Win 95+","version":"5","grade":"C"},{"engine":"Trident","browser":"Internet Explorer 5.5","platform":"Win 95+","version":"5.5","grade":"A"}]}[/code]
The 'Kikoo' alert never come.
Thanks in advance for your answer.
Above all thanks for your work and sorry for my so bad english I am french.
I am experiencing issue using a mRender function.
I thought it was because of my code by i can't get it works with a really simple code too
Here the source code of my function
[code]
$(document).ready(function(){
$('.data-table').dataTable({
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'Ct<"F"fip>',
"bProcessing": true,
"sAjaxSource": "/process.php",
"bScrollInfinite": false,
"bScrollCollapse": false,
"aoColumnDefs": [
{
"mDataProp": "engine",
"mData": "engine",
"aTargets": [0],
"sTitle": "Engine",
"bSearchable": true,
"bSortable": true,
"bVisible": true,
"mRender": function ( data, type, full ) {
alert ("kikoo");
return 'Download';
}
},
{
"mDataProp": "version",
"mData": "version",
"aTargets": [1],
"sTitle": "OS Version",
"bSearchable": true,
"bSortable": true,
"bVisible": true,
"mRender": function ( data, type, full ) {
alert ("kikoo");
return 'Download';
}
},
{
"mDataProp": "platform",
"mData": "platform",
"aTargets": [2],
"sTitle": "OS Platform",
"bSearchable": true,
"bSortable": true,
"bVisible": true,
"mRender": function ( data, type, full ) {
alert ("kikoo");
return 'Download';
}
}]
});
[/code]
I am building my aoColumnDefs throught a foreach in php.
Here an excerpt og my data source
[code]
{"sEcho":1,"aaData":[{"engine":"Trident","browser":"Internet Explorer 4.0","platform":"Win 95+","version":"4","grade":"X"},{"engine":"Trident","browser":"Internet Explorer 5.0","platform":"Win 95+","version":"5","grade":"C"},{"engine":"Trident","browser":"Internet Explorer 5.5","platform":"Win 95+","version":"5.5","grade":"A"}]}[/code]
The 'Kikoo' alert never come.
Thanks in advance for your answer.
This discussion has been closed.
Replies