Blazor Tree Grid Export to Excel Service

    Blazor Tree Grid의 Ignite UI for Blazor Export to Excel Service는 데이터를 Excel로 내보낼 수 있습니다. 데이터 내보내기 기능은 ExcelExporterService 클래스에 캡슐화되어 있으며 데이터는 MS Excel 테이블 형식으로 내보내집니다. 이 형식은 필터링, 정렬 등의 기능을 허용합니다. 이를 위해 ExcelExporterServiceExport 메서드를 호출하고 IgbTreeGrid 구성 요소를 첫 번째 인수로 전달하여 그리드를 쉽게 내보내야 합니다.

    Blazor Excel Exporter Example

    EXAMPLE
    DATA
    MODULES
    RAZOR
    CSS

    Like this sample? Get access to our complete Ignite UI for Blazor toolkit and start building your own apps in minutes. Download it for free.

    Export Multi Column Headers Grid

    이제 내보낼 수 있습니다. IgbTreeGrid 정의된 다중 열 머리글. 모든 헤더는 내보낸 Excel 파일에 표시되는 대로 반영됩니다. IgbTreeGrid. 내보낸 데이터에서 정의된 다중 열 헤더를 제외하려면 ExporterOption IgnoreMultiColumnHeaders 받는 사람 true.

    The exported IgbTreeGrid will not be formatted as a table, since Excel tables do not support multiple column headers.

    EXAMPLE
    DATA
    MODULES
    RAZOR
    JS
    CSS

    Export Grid with Frozen Column Headers

    기본적으로 Excel 내보내기 서비스는 스크롤 가능한(고정 해제된) 열 머리글과 함께 그리드를 내보냅니다. 사용자가 레코드를 스크롤할 때 항상 표시되도록 내보낸 Excel 파일 위에 모든 헤더를 고정하려는 시나리오가 있습니다. 이를 달성하려면 ExporterOption FreezeHeaders​ ​true로 설정할 수 있습니다.

     <IgbTreeGrid>
        <IgbGridToolbar>
          <IgbGridToolbarActions>
            <IgbGridToolbarExporter
              ExportExcel="true" ExportStartedScript="WebGridExportEventFreezeHeaders">
            </IgbGridToolbarExporter>
          </IgbGridToolbarActions>
        </IgbGridToolbar>
     </IgbTreeGrid>
    
    igRegisterScript("WebGridExportEventFreezeHeaders", (ev) => {
        ev.detail.options.freezeHeaders = false;
    }, false);
    razor

    Known Limitations

    한정 설명
    계층 수준 Excel 내보내기 서비스는 최대 8개 수준의 계층 구조를 생성할 수 있습니다.
    최대 워크시트 크기 Excel에서 지원되는 최대 워크시트 크기는 1,048,576행 x 16,384열입니다.
    셀 스타일링 Excel 내보내기 서비스는 셀 구성 요소에 적용된 사용자 정의 스타일 내보내기를 지원하지 않습니다. 이러한 시나리오에서는 Excel 라이브러리를 사용하는 것이 좋습니다.

    API References

    • ExcelExporterService
    • ExcelExporterOptions
    • IgbTreeGrid

    Additional Resources

    우리 커뮤니티는 활동적이며 항상 새로운 아이디어를 환영합니다.