Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    possible to export two listgrid's into one excel file?

    Hello. I am able to export a listgrid like so:

    (inside of a onClick handler)
    Code:
    DSRequest dsRequestProperties = new DSRequest();
    dsRequestProperties.setExportAs(ExportFormat.XLS);
    dsRequestProperties.setExportDisplay(ExportDisplay.DOWNLOAD);
    getItemsGrid().exportClientData(dsRequestProperties);
    Is it possible to export two grids to the same excel file?

    #2
    Client-side, you can combine data from two grids and pass it to DataSource.exportClientData().

    Server-side, you could create a single DataSource that returns combined data, then you'd be able to use DataSource.exportData() with that DataSource.

    Comment


      #3
      Thanks! Sorry I should have specified we are trying to do this one client side only. I'll try combining them, but they are two very different grids, from two different DataSource's.

      Thanks for the fast response.

      Comment

      Working...
      X