Docs
API
  • exportToCSV([params: Object])

    Exports data to csv file.

    Requires to set property exporter: true

    By default it exports only visually displayed data.
    To export all data it requires to set property all: true.

    Example: Basic

    
    grid.exportToCSV();
    

    Example: Export all data

    
    grid.exportToCSV({
      all: true
    });
    

    Example: File Name

    
    grid.exportToCSV({
      fileName: 'MyCSV'
    });
    

    Example: With Header

    
    grid.exportToCSV({
      header: true
    });
    

    Example: Custom separator

    
    grid.exportToCSV({
      separator: ' '
    });
    

    Example: Ingore column render methods

    
    grid.exportToCSV({
      ignoreRender: true
    });
    

    Example: Only rows with ids

    
    grid.exportToExcel({
      rowIds: [1, 3, 7]
    });
    

    See also

    Method exportToExcel
    Method getDataAsCSV

    Property exportFn
    Property exportable

    Doc link Export