例如:
<th data-options="field:'Active',width:100,align:'center',
editor:{
type:'combobox',
options:{
valueField:'Value',
textField:'Text',
data: [{
Text: 'Y',
Value: 'Y'
},{
Text: 'N',
Value: 'N'
}]
}
}">Active</th>
在Append行的时候进行初始化:
$table.datagrid('appendRow', {Active:'Y'});