How insert mData for activate
How insert mData for activate
roca_table1
Posts: 4Questions: 0Answers: 0
Who I Can concatenate a Ver only in the table?
I'm using editor of datatables
[code]
$('#ternas13').dataTable( {
"sDom": 'TF<"clear">lfrtip',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaSorting": [[ 0, "asc" ]],
"bStateSave": false,
"sAjaxSource": "php/table.ternas13.php",
"aoColumns": [
{
"mDataProp": "area_academica"
},
{
"mDataProp": "region"
},
{
"mDataProp": "ciudad"
},
{
"mDataProp": "entidad_academica"
},
{
"mDataProp": "nombre"
},
{
"mDataProp": "primero"
},
{
"mDataProp": "segundo"
},
{
"mDataProp": "vencimiento"
},
{
"mDataProp": "observaciones"
}
],
//Empieza
"aoColumnDefs": [{
"aTargets": [ 8 ],
"mData":8,
"mRender": function ( data, type, full ) {
return 'Ver';
}
}],
[/code]
I'm using editor of datatables
[code]
$('#ternas13').dataTable( {
"sDom": 'TF<"clear">lfrtip',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaSorting": [[ 0, "asc" ]],
"bStateSave": false,
"sAjaxSource": "php/table.ternas13.php",
"aoColumns": [
{
"mDataProp": "area_academica"
},
{
"mDataProp": "region"
},
{
"mDataProp": "ciudad"
},
{
"mDataProp": "entidad_academica"
},
{
"mDataProp": "nombre"
},
{
"mDataProp": "primero"
},
{
"mDataProp": "segundo"
},
{
"mDataProp": "vencimiento"
},
{
"mDataProp": "observaciones"
}
],
//Empieza
"aoColumnDefs": [{
"aTargets": [ 8 ],
"mData":8,
"mRender": function ( data, type, full ) {
return 'Ver';
}
}],
[/code]
This discussion has been closed.
Replies
Allan
[code]
{ "mData": null,
"fnRender" : function(oObj) {
return 'Ver';
}
}
[/code]
this code work!
[code]
{
"mDataProp": null,
"fnRender" : function(oObj)
{
return 'Ver';
}
}
[/code]
I am very grateful
Thanks in advance
[code]
{
"mDataProp": null,
"fnRender" : function(oObj)
{
if (oObj.aData["url"] != '' ){
return 'Ver'
}
else{
return oObj.aData["url"]
}
}
}
[/code]
Thanks a lot for you help!!