sWidth and mRender problem with makeEditable

sWidth and mRender problem with makeEditable

SergeHipontoiseSergeHipontoise Posts: 5Questions: 0Answers: 0
edited November 2012 in DataTables 1.9
Hello
here is a part of my code :

[code]
$(document).ready( function () {
$('#example').dataTable({
"bProcessing": true,
"bServerSide": true,
"aoColumnDefs": [
{
"mRender": function ( data, type, row ) {
return '*****'; // to hide the value but to be able to modify it
},
"aTargets": [ 6 ]
},

(... other code ...)

{ "sTitle": "Société", "aTargets": [ 3 ] },
{ "sWidth": "20%", "aTargets": [ 3 ] },
{ "sName": "user_co", "aTargets": [ 3 ] },


(... other code ...)


"sAjaxSource": "requete.php",
}
).makeEditable({

sUpdateURL: "editable_ajax.php",

"aoColumns": [
// col 0 ID
null,
// col 1
{ tooltip: 'Double clic pour modifier le nom',
},
// col 2
{ tooltip: 'Double clic pour modifier le prénom',
sName: "user_fname" },
// col 3

{
indicator: 'Sauvegarde de la société...',
tooltip: 'Double clic pour modifier la société',
loadtext: 'loading...',


},
// col 4
{ tooltip: 'Double clic pour modifier l\'email' },
// col 5
{ tooltip: 'Double clic pour modifier le login' },
// col 6
{ tooltip: 'Double clic pour modifier le mot de passe' },
// col 7
null,
// col 8
null,

]
});
} );


[/code]


Neither the sWidth parameter nor the mRender parameter work
sName works well though



Thanks a lot

Serge

Replies

This discussion has been closed.