Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1415
Hierarichal grid load on demand Export to excel feature
posted

Hi team,

I am using Infragistics version 9.1.28 and will update in upcoming month but this is requirement i have to deliver.

Requirement: Using Hierarchical Grid load on demand feature. We need to export Data to excel with both parent and child grid data in same Hierarchal format. 

Please provide a data format to achieve export to excel feature with hierarchal  format

Please reply ASAP.
Parents
No Data
Reply
  • 700
    Offline posted

    Hello Shobhana,

    Thank you for posting in our community!

    I have been looking into your question, however, please note that according to our support policy version 9.1.28 is considered retired and is no longer eligible for Developer Support Services.

    Having this in mind, I would suggest updating your application and using any of the currently supported versions of Ignite UI for Angular, which are 14.2.x and 15.1.x, in order to take advantage of all new features, functionalities, and developer support. For more information, you can refer to our official Update guide.

    Additionally, regarding your question, what I could say is that in order the Excel Export Service to export the parent and child grids in the appropriate hierarchical format, this information should be available in the data property of the IgxHierarchicalGridComponent

    this.excelExportService.export(this.hierarchicalGrid, new IgxExcelExporterOptions('ExportedDataFile'));

    or exporting the whole data collection

    this.excelExportService.exportData(this.localData, new IgxExcelExporterOptions('ExportedDataFile'));

    Furthermore, when using the load on demand functionality initially only the root grid’s data is retrieved and rendered, and only after the user expands a row containing a child grid, the data for that particular child grid will be received. However, at this point the data property of the IgxHierarchicalGridComponent has information only for its root grid data and not for the child grids, depending on how the load on demand functionality is implemented. Having this in mind, even after expanding the child grids, the exported Excel file will contain information only for the root grid.

    A possible approach is using the gridCreated event and setting the retrieved child grid data to the collection in the parent which corresponds to the key property of the child grid. This, however, will require the child grid to be expanded in order for the data to be retrieved.

    Here could be found a small sample demonstrating this approach.

    Please let me know if you need any further assistance regarding this matter.

    Looking forward to your reply.

    Sincerely,
    Riva Ivanova
    Associate Software Developer

Children