Thanks for your quick reply, stworthy!
But I don't want to to data of row. I want to make action formatter for general use, because I have many edatagrids in tabs, but I only want to have one formatter, if I can get id of current table, I can call functions SAVE, CANCEL, EDIT.
For example, I have this formatter:
function actionformatter_qc01(value,row,index){
var s = '<button onclick="save(this)">Save</button>';
var c = '<button onclick="cancel(this)">Cancel</button>';
var e = '<button onclick="edit(this)">Edit</button>';
if (row.editing){return s+c;} else {return e;}
function save(target){
[b]$('#dg01')[/b].datagrid('endEdit', getRowIndex(target));
}
and I don't want to call $('#dg01') but for example $(this) or $(
table_id), but it does not work.
Do you have any suggestion?