A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.telerik.com/kendo-react-ui/components/grid/interactivity/clipboard below:

React Data Grid Interactivity Clipboard

KendoReact Data Grid Clipboard

Premium

You can perform all standard clipboard operations from and to the Data Grid by using the system clipboard.

The Grid Clipboard feature is part of KendoReact premium, an enterprise-grade UI library with 120+ free and premium components for building polished, performant apps. Test-drive all features with a free 30-day trial.Start Free Trial

The Data Grid clipboard supports the following keyboard shortcuts:

SHORTCUT DESCRIPTION Ctrl/Cmd (for Mac) + C Copy selected or focused content. Ctrl/Cmd (for Mac) + X Cut selected or focused content. Ctrl/Cmd (for Mac) + V Paste the clipboard content.

To enable the built-in clipboard feature:

  1. Enable the selection feature of the Data Grid and handle its built in select state.
  2. Enable the clipboard property to enable the clipboard copy, cut and paste operations.
  3. Handle the onClipboard function and use the populateClipboardData function to update the Data Grid data as necessary by using the available copied cells.

As a result, the Grid allows you to:

The populateClipboardData function populates the clipboard data. It takes the ClipboardDataEvent event arguments, the current data loaded in the Data Grid and the selection state, and returns the ClipboardData containing the collection of copied and pasted items.

In case you want to disable any of the copy/paste/cut operations, you can determine the current action type based on the event.type value of the ClipboardDataEvent object.

The following example demonstrates how to cut or copy selected row(s) and paste the copied content in the same Data Grid or in Microsoft Excel.

Clipboard Settings

The content of the Data Grid is copied in an Excel compatible format where the cells are separated by a tab character (\t) and the rows are separated by new line (\n) character. You can customize the default clipboard behavior by using the following clipboard settings:

The following example illustrates how by activating the copyHeaders prop you gain the ability to copy the headers of the selected cells, regardless of whether the headers are included in the current selection. To test this functionality copy a range of cells from the Data Grid below and paste them in Microsoft Excel:

Suggested Links

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4