Hi,
First sorry for my english…
when I modified a cell (column STATUT), i would like get the field NAME of the row modified ?
I try to get data like this but how replace 0 by the value of the row modified (THIS) ?
identity= $(“#jqxgrid”).jqxGrid(‘getcellvalue’, THIS, ‘NAME’);
Thanks
columns: [
{ text: 'Name', datafield: 'NAME', width: 80, editable: false },
{ text: 'Sex', datafield: 'SEX', width: 120, editable: false },
{ text: 'Age', datafield: 'AGE', width: 120, cellsalign: 'right', editable: false },
{ text: 'Height', datafield: 'HEIGHT', width: 120, cellsalign: 'right', editable: false },
{ text: 'Weight', datafield: 'WEIGHT', width: 120, cellsalign: 'right', editable: false },
{ text: 'Statut',columntype: 'dropdownlist',source:src, datafield: 'STATUT', width: 80, editable: true ,
createeditor: function (row, column, editor) {
editor.jqxDropDownList({ autoDropDownHeight: true, source: src });
},
validation: function (cell, value) {
if (value == "SENT")
{
identity= $("#jqxgrid").jqxGrid('getcellvalue', 0, 'NAME'); /*VALUE OF THE FIELD NAME OF THE LINE MODIFIED */;
alert(identity); // NOT OK ;
$.ajax({
type : 'POST', // envoi des données en GET ou POST
url : '', // url du fichier de traitement
data : 'value='+value+'&identity='+identity,
success : ''
});
}
return true;
}
}
]