• What is KendoReact
  • Getting Started
  • Server Components
  • Components
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Paste Data From Excel

Environment

Product Version3.15.0
ProductProgress® KendoReact

Description

I need to provide mechanism for pasting data into my KendoReact Grid, from Excel sheets.

Solution

This will require wrapping the Grid in a div element and attaching an onPaste event. Then on that event:

  1. Take the data.
  2. Transform it into JSON based on the Grid fields.
  3. Set that JSON array as Grid data.

This can be seen in the following example:

Example
View Source
Change Theme:

In this article

Not finding the help you need?