我目前正在尝试在 jqGrid 中实现多分组,但似乎无法正确处理。请参见下面的代码:
colNames:['Programme','Course', 'Fee Type','Description','Apply', 'Amount', 'Discount', 'Discounted Amt','GATE Amount'],
colModel:[
{name:'programme',index:'programme', width: 25},
{name:'moduleInstance',index:'moduleInstance', width:30
},
{name:'feeType',index:'feeType', width:15
},
{name:'description',index:'description', width:15
},
{name:'isApplicable',index:'isApplicable', width:4, editable:true, edittype:'checkbox', editoptions: { value:"True:False"},formatter: "checkbox", formatoptions: {disabled : false}
},
{name:'amount',index:'amount', width:5
},
{name:'discount',index:'discount', width:5, editable:true},
{name:'discountAmount',index:'discountAmount', width:8},
{name:'gateAmountCovered',index:'gateAmountCovered', width:8, editable:true}
],sortname: 'moduleInstance',
grouping:true,
groupingView : {
groupField : ['programme', 'moduleInstance'],
groupColumnShow : [false, false],
groupText : ['<b>{0} - {1} Item(s)</b>', '{0}']
},
这仅在标题上显示程序标题,而不在其他标题上显示。谁能告诉我我在这里做错了什么?