Support for Multi-Cell Select and Copy-Paste in React Data Grid

Open
#3,609 2 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start by reviewing the current DataGrid API and the legacy implementation linked in the issue. Define how cellRangeSelection should expose selection updates and how copy-paste should work within the grid and with external applications. Done means multi-cell selection, bulk copy, and paste are supported for the stated use case.

Written by the indexing model from the issue text.

Description

Feature:

  • Multi-Cell Select: The ability to select multiple cells at once, similar to how you can in spreadsheet applications like Excel.
  • Copy-Paste: The ability to copy the selected cells and paste them into another location within the grid or into an external application like Excel.

Use case:

Bulk editing grid data.

Proposed solution:

We can create a prop cellRangeSelection to handle the selection and copy-paste actions. Here’s an example of how you might set it up (already available in legacy versions of https://github.com/adazzle/react-data-grid):

<DataGrid
cellRangeSelection={{
onStart: (args) => console.log('Selection started:', args),
onUpdate: (args) => console.log('Selection updated:', args),
onComplete: (args) => console.log('Selection completed:', args)
}}
/>

Dominant language
TypeScript
Stars
7.7k
Forks
2.2k
Avg merge
1d 10h
Merged PRs (30d)
30

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Comcast/react-data-grid

All issues in Comcast/react-data-grid

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.