Hi! I have again the problem of getting changes in the data grid with detailview when inserting the first row.
const grid = $('#grid');
grid.datagrid({
width: 500,
height: 300,
idField: 'id',
view: detailview,
detailFormatter: () => `<div>some content</div>`,
columns: [[{ field: 'column1', title: 'column1' }, { field: 'column1', title: 'column1' }]],
});
grid.datagrid('appendRow', { column1: 'columnValue1', column2: 'columnValue2' });
console.log({
inserted: grid.datagrid('getChanges', 'inserted'),
deleted: grid.datagrid('getChanges', 'deleted'),
updated: grid.datagrid('getChanges', 'updated'),
});
// {inserted: Array(0), deleted: Array(0), updated: Array(0)}
// I wanted to get
//{inserted: Array(1), deleted: Array(0), updated: Array(0)}
If I insert a string into a non-empty list, everything is fine.
Most likely all, this is due to the plugin detailview (1.0.1).
I am using easyUI version 1.5.1, but tested on several versions above, everything is exactly the same.
Please help me somebody!