上級科目怎麼動態顯示科目名稱啊
treegrid繼承自datagrid,datagrid的方法也適用於treegrid,直接更新記錄中上級科目中的列值就行了
updateRow param Update the specified row, the param contains following properties:
index: the row index to be updated.
row: the new row data.
Code example:
$('#dg').datagrid('updateRow',{
index: 2,
row: {
name: 'new name',
note: 'new note message'
}
});