不知道是不是我写的有问题,选择行和拖拽还是有问题!
初始化:
$._initSheetPage = function () {
var flex = new wijmo.grid.sheet.FlexSheet('#flexsheet');
flex.initialize({
allowDelete: true,
allowDragging: wijmo.grid.AllowDragging.Both
});
flex.addUnboundSheet('Sheet1');
flex.selectedSheetIndex = 0;
}
重新绑定:
if (res) {
var flex = wijmo.grid.sheet.FlexSheet.getControl("#flexsheet");
var data = converToObjArray(res);
flex.addBoundSheet('Sheet2', data);
flex.sheets.removeAt(0);
}
眼神好的喵喵! |