Excel - MultiExport
다중 그리드 사용 시 하나의 엑셀파일에 각 시트별로 그리드를 export 해서 하나의 excel파일에 여러개의 그리드를 내려받을 수 있습니다.
Grid1
Grid2
pivot, grid, 피벗, 필터, filter
pivot, export
pivot, style, callback, styleCallback
pivot, value, getCellValue
pivot, pivotFields, getPivotFields
(Only JS Support)excel export시 2개 이상의 그리드를 파일 옵션은 공통으로 설정하며 exportGrids 속성으로 각 시트를 설정합니다.
엑셀타입 설정
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
RealGridJS.exportGrid({
type:"excel",
target:"local",
fileName:"multiExport.xlsx",
compatibility: excelType,
done:function() {
alert("done excel export")
},
exportGrids:[
{
grid:gridView, //그리드 변수명
sheetName:"sheetName" // 다른 그리드와 중복되어서는 안된다.
}, {
grid:gridView2,
sheetName:"sheetName2"
}
]
});
GridExportOptions API문서에서 화면에 표시되는 그리드를 엑셀 등의 외부 문서로 내보내기할 때 지정하는 설정 모델을 확인할 수 있습니다.