Hi,
I got the next code:
<table id="g-customers" class="easyui-datagrid" style="width:750px;height:165px" url="myurl" singleSelect="true">
<thead>
<th field="Id" hidden="true">ID</th>
<th field="Name" width="80">Name</th>
</tr>
</thead>
</table>
...
...
...
function Update(){
var row = $("#g-customers").datagrid("getSelected");
var rowIndex = $("#g-customers").datagrid("getRowIndex", row);
$('#g-customers').datagrid('updateRow',rowIndex,{Id: "60",Name:"John"});
}
In the line $('#g-vtd').datagrid('updateRow',rowIndex,{Id: "60",Name:"John"});
I get the error:
Uncaught TypeError: Cannot read property 'Id' of undefined
thanks for advance