我知道,通过使用JSON,我们可以将数据加载到附录Grount,甚至我也能够在'type:textarea''中动态加载数据。但是想将数据加载到附录列表中,即''type:select''。如何加载它?
而不是选择选择的硬编码值,我希望它从java/ajax给出。代码:
$('#tblappendGrid'(。addClass('备用'(;$(
'#tblappendgrid'(。appendgrid({标题:
'添加/编辑产品',initrows:1,
列:[{
名称:
'lob',显示:
'lob',类型:
'select',ctrloptions:{
0:
'1',1:
'2'}
您无法正确关闭JSON参数:
$('#tblAppendGrid').appendGrid({
caption : 'Add/Edit Product',
initRows : 1,
columns : [
{ name : 'LOB', display : 'LOB', type : 'select', ctrlOptions : { 0 : '1', 1 : '2' }}
]
});