Hi,
I have found the reason of this problem.
This is how I had in my file:
<script>
$(function(){
$('#dg').datagrid({
title:'dg',
animate:false,
url:'../datagrid/datagrid_data1.json',
singleSelect:true,
idField:'id',
columns:[[
{field:'itemid',title:'itemid',width:100},
{field:'productid',title:'productid',width:150}
]]
});
});
function test(){
$('#dg').datagrid('reload');
}
</script>
idField:'id' has to be
idField:'itemid'