小编Ram*_*esh的帖子

如何在jqgrid中的同一列中显示多个值

我想知道如何在jqGrid中的单个列中显示多个值

以下是我当前网格定义的示例.

$("#grid1").jqGrid({
url: 'Default.aspx/getGridData',
datatype: 'json',
...
colModel: [
...
//contains the input type ('select', etc.)
{ name: 'InputType', hidden:true }, 
...
//may contain a string of select options ('<option>Option1</option>'...)
{ 
  name: 'Input', 
  editable:true, 
  edittype:'custom', 
  editoptions:{
     custom_element: /* want cell value from InputType column here */ , 
     custom_value:   /* want cell value from Input column here */ 
  } 
 }, 
...
]
});
Run Code Online (Sandbox Code Playgroud)

jqgrid

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

jqgrid ×1