Programmatic CSV Export

Updated on May 11, 2026

The Kendo UI for Vue Data Grid provides programmatic methods via the Grid ref to export CSV data without using the built-in GridCsvExportButton component. This enables custom export workflows such as uploading to a server or previewing the data before download.

ninja-iconThe CSV Export is part of Kendo UI for Vue, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.Start Free Trial

Grid Ref Methods

The Grid exposes two CSV-related methods through its ref:

MethodReturnsDescription
exportAsCsv()voidTriggers a CSV file download
getCsvBlob()Blob | nullReturns the CSV data as a Blob for custom handling

Usage Example

The following example demonstrates both methods:

  • Download CSV - Uses exportAsCsv() to trigger an immediate file download
  • Upload to Server - Uses getCsvBlob() to get the Blob for custom upload logic
  • Preview CSV - Uses getCsvBlob() to read and display the CSV content
Change Theme
Theme
Loading ...
In this article
Grid Ref MethodsUsage ExampleSuggested Links
Not finding the help you need?
Contact Support