Hi, I am using edatagrid. I have a table like this:
. The status will be changed from code if I click a print button. My code is like this.
var row = $('#dg').edatagrid('getSelected');
var index = $('#dg').edatagrid('getRowIndex',row);
row.status = 'Yes';
$('#dg').edatagrid('updateRow',{index:index,row:row});
$('#dg').edatagrid('saveRow');
$('#dg').edatagrid('refreshRow',index);
But the data in the database doesn't change. I know how to post the changes through ajax. Is there a better way to do this automatically? Just like I clicked the row and changed the value? Thanks.