Jquery easyui datagrid 怎么设置默认值和动态的改变某列的值

如题所述

默认值可以经由 data-options参数设置
url:'datagrid_data1.json',method:'get'

or
使用 loader :callback ,
the callback function that will be called when retrieve data successfully.

动态改变某列值
Code example:
$('#dg').datagrid('updateRow',{
index: 2, // 此为列数
row: {
name: 'new name',
note: 'new note message'
}
});
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答