87,984
社区成员
发帖
与我相关
我的任务
分享


$('#dg').datagrid('appendRow',{
name: 'new name',
age: 30,
note: 'some messages'
});
insertRow param Insert a new row, the param contains following properties:
index: the row index to insert into, if not defined, append the new row.
row: the row data. Code examples:
// insert a new row at second row position
$('#dg').datagrid('insertRow',{
index: 1, // index start with 0
row: {
name: 'new name',
age: 30,
note: 'some messages'
}
});