如果只是刷新数据,那么您最开始将三个表格同时初始化好,然后再事件里面去刷新其他worksheet的数据源即可。
- sheet.bind(ns.Events.EditEnd, function(e, args) {
- console.log(id + " EditEnd");
- if(id === "ss"){
- //initGrid("ss1");
- var spread1 = GC.Spread.Sheets.findControl(document.getElementById("ss1"))
- var sheet1_1 = spread1.getActiveSheet()
- sheet1_1.setDataSource([{
- partNumber: '0231520311',
- country: 'American11'
- }]);
- }
- });
复制代码 |