With the update of data in datatable :
[code]
$('td', oTable.fnGetNodes()).editable(function(value, settings) {
//console.log(this);
//console.log(value);
//console.log(settings);
var aPos = oTable.fnGetPosition(this);
// warning aPos[2] cause of hidden column aPos[1] in other case
oTable.fnUpdate(value, aPos[0],aPos[2], false);
return(value);
}, {
type : "textarea",
rows : "1",
submit : "Valider",
height : "30px",
placeholder: 'Cliquer ici pour
Replies
[code]
function addCellEditable(){
$('td', oTable.fnGetNodes()).editable(function(value, settings) {
//console.log(this);
//console.log(value);
//console.log(settings);
return(value);
}, {
type : 'textarea',
submit : 'OK'
});
}
[/code]
[code]
$('td', oTable.fnGetNodes()).editable(function(value, settings) {
//console.log(this);
//console.log(value);
//console.log(settings);
var aPos = oTable.fnGetPosition(this);
// warning aPos[2] cause of hidden column aPos[1] in other case
oTable.fnUpdate(value, aPos[0],aPos[2], false);
return(value);
}, {
type : "textarea",
rows : "1",
submit : "Valider",
height : "30px",
placeholder: 'Cliquer ici pour