Hi,
My datagrid is formed in the manner as below. Using the cell editing extension I'm trying to get the new values of changed cells, their field names and the primary key value. The primary key is provided by the get-table.php but is not displayed in the datagrid.
var dgrid = $('#table');
dgrid.datagrid({
title: 'Datagrid',
singleSelect: true,
width: '80%',
url: get-table.php,
columns:[[
{field:'itemid',title:'Item ID',width:'15%',
editor:{
type:'combobox',
options:{
valueField:'Vol',
textField:'Vol',
data: items,
required: true
}
}
},
{field:'productid',title:'Product',width:'15%',align:'center',editor:'text'},
{field:'listprice',title:'ListPrice',width:'15%',align:'center',editor:'numberbox'}
]]
});
dgrid.datagrid('enableCellEditing').datagrid('gotoCell', {
index: 0,
field: 'productid'
});
}