给的demo里面的代码
var dataView = new GC.Spread.Views.DataView(document.getElementById('grid1'), data, columns, new GC.Spread.Views.Plugins.GridLayout({
allowGrouping: true,
defaultGroupingInfo: {
footer: {
visible: false
}
},
grouping: [{
field: 'country',
}],
allowHeaderSelect: true,
selectionMode: 'multiple',
rowHeight: 30
})); |