react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

[Idea] Enable Cell Expand functionality

Open malonecj opened this issue 11 years ago • 6 comments

Enable Cell Expand functionality

Description

Currently, when text the text of a cell in React Data Grid becomes too long, it gets truncated and an elipsis is shown. We would like a method to display the full amount of text in a cell if the text is too long. This could be from either exapanding the height and width of the cell to show the entire content. Or displaying that content in a modal.

Current functionality

image

Desired functionality

image

Requirements:

  • Modify the render method of https://github.com/adazzle/react-data-grid/blob/master/src/Cell.js such that it renders an ExpandIcon React component if the text is truncated.
  • Expand icon should have an onClick event that renders a modal window adjacent to the cell.
  • Navigating across the cells should leave the modal window open but change the content
  • Create a new example in https://github.com/adazzle/react-data-grid/tree/master/examples/scripts that demonstrates the functionality and loads a React Data Grid that has truncated text in some cells.

Bonus Points: Add one of more tests in https://github.com/adazzle/react-data-grid/blob/master/src/Cell.js or on your new component to verify the new functionality

malonecj avatar Nov 12 '15 18:11 malonecj

+1

snario avatar Mar 03 '16 18:03 snario

related: https://github.com/adazzle/react-data-grid/issues/248

jpdriver avatar Mar 16 '16 10:03 jpdriver

I wanna know whether the react-data-grid support Cell Expand functionality now

azl397985856 avatar Aug 18 '16 07:08 azl397985856

What is the solution for such use cases.

sunil-srma avatar Aug 28 '18 06:08 sunil-srma

Any update on this? Feels like its a must have for such a library

FatehAK avatar Jul 07 '20 15:07 FatehAK

Any update?

iamsaurabhgupt avatar Dec 09 '20 02:12 iamsaurabhgupt