Bonjour,
How to update local data cache (data Source) ?
sample :
dataSource= [
{id:125, name: "Francois", age:25 },
{id:126, name: "Alain", age:26 },
...
]
colModel : [
{title : 'ID', dataType : 'integer', dataIndx : 'id'},
{title : 'Name', editable : false, dataIndx : 'name'}
],
dataModel : {
data : dataSource,
recIndx : "id"
}
my need is to update name and age
$("#grid").pqGrid( "updateRow", {
rowIndx: 2,
newRow: { name:"Alain Legrand", age: 30 }
});