(abandoned) Feature proposals
Hey everyone,
Bit of background first — I’m JP, one of the original maintainers of React Data Grid.
I’m opening this issue as a place to track and discuss a set of potential new features for the next version of the Grid project.
Below is a list of notable features I personally want to explore for V3; beyond a bunch of bug-fixes and stability improvements.
If you have any additional features / comments / suggestions / can help, please leave a comment below.
⚠️ ☢️
DISCLAIMER: This is not an official announcement of new features. I'm trying to gather feedback / gauge interest on this proposed feature set.
⚠️ ☢️
Core
- Even more performant rendering

- Nested Grids
- Universal (aka Isomorphic aka SSR) Rendering

Columns
- Responsive improvements
- "Hide Order" for Columns at certain breakpoints
- APIs to programmatically resize / reorder Columns & Rows on the client
- Select cells by column
- Client-side create / delete / hide Columns
- Left / Right Column Freeze
Rows
- Dynamic row heights

- Drag to resize row height per row (+ API to programmatically resize / reorder)

- Swap Column Formatters & Editors dynamically on the client
- Freezable Rows (1 or more)
Cells
- ColSpan Cells
- RowSpan Cells
- Dynamic Styles (dirty data, server-updated data, required, invalid)
- thanks @dzwiedziu-nkg
Editors
- Formula Cells (=A1+B1+C1)
Functions
- Copy / Paste Continuous Cell Ranges (finally!!)
- Copy / Paste Random Cell Sequences
- Content-aware fill (Drag-down from "August 2017" to fill with "September 2017", "October 2017", etc)
- File Import & Exports (.json & .csv)
Theming
- Material UI theme
- Full support for Custom Theming
Tooling
- Move back to single NPM package (? - to be discussed w/ Adazzle)
- preact-data-grid & inferno-data-grid (? - anyone interested in official bindings)
Definitely looking for expandable rows which I believe is the same things as Nested Grids. Like this example: http://allenfang.github.io/react-bootstrap-table/example.html#expand "Custom Expand Row Indicator"
hey @smorin -- so that's actually two features
the first is the functional ability to expand a row. we refer to that as a tree view, and it's currently being implemented in this PR https://github.com/adazzle/react-data-grid/pull/664
the second (which i believe is beyond the scope of tree view in it's current form) is the nested Grids
@jpdriver I guess I am not understanding clearly what the difference between functionality in a tree view would be vs a nested grid. For example is a tree view just extra canvas space that opens under a row, while a nested grid is extra rows that get expanded?
So by Tree View we mean something like this -- where you can expand one or more child rows that have the same structure as the parent grid.
Nested Grids on the other hand involve rendering a whole separate Grid, essentially instead of a Row on a parent Grid.
That Nested Grid could have it's own structure, columns, rows, etc.
Make sense?
Much clearer now, makes sense.
Would it make sense then as a step on to allow basically a arbitrary "area"/"canvas" to be opened up like that so that any component could be put in the expanded space? One implementation of that would be a "Nested Grid".
Hi everyone, the version I am using now cannot disable the "drag and drop" function. It seems when I made the cell editable, it will automatically trigger the "drag and drop to copy" function. I am trying to read the github source code to modify the function myself. I wish in the next version it will have a better documentation of every single element, from Cell, Editor to Canvas, Viewport. Besides, the current version uses a lot of of "mixin", not sure if they will be replaced by the 'composition pattern', or 'presentational and container ' components, in the future.
Is there a slack channel for this project? I saw a reference to that in the contributing page.
@hkjpotato -- better documentation is something several people are asking for, and something that i'm hoping to include as part of the V3 improvements.
@smorin you can join the Slack channel at https://react-data-grid.herokuapp.com/
Feature request: easy way to implement custom cell theme (i.e. background color) according to data value, for example:
- cell data was modified by user (i.e. yellow background) and not save,
- cell data just updated from server (i.e. according to time of last changed),
- cell is need to fill by user,
- cell have invalid data,
- etc.
While on the topic of next versions... can someone explaining the version numbering for this project? There seems to be a version bump with literally every single commit. Why is that? Should the stuff on the 'releases' section of the project be considered the 'official' release, and the version bumps in the commit history are not actually 'official' releases and people should ignore the versions in the commit history?
hey @mattknoxca -- we follow semver, which dictates that any patch releases to fix bugs should bump the version number. Because of this, we have an automated script that bumps the version number after every merge commit into the master branch.
As for why GitHub Releases shows a different "latest version", that's because we adopted Lerna -- which lets you split your source code into multiple NPM packages within one repository. We actually have two version numbers. If you look at the package.json file in the root, it says the version for the repository is 2.0.1. But the latest version of the packages within it is 2.0.33.
So both are official -- but we'll only publish a new Github Release when we need to bump the repository version. Let me know if that all makes sense 😄
One feature I think would be nice, though possibly difficult to implement, and only necessary on the most advanced grids would be virtual columns.
I have grids where the user can include up to 50 different columns, with the first 3 of them locked. Most of those columns are simple render the value from the DB, though others need complex formatting that depends on other values and things. This makes horizontal scrolling laggy in some instances. If there were a way to only render the X columns visible, that would be great!
hey @lord-xeon -- as things are right now, the Grid already has "virtualised columns" in that if a cell is within a column which is outside the currently viewable <Viewport /> bounds, it will render as an <OverflowCell />.
These are empty divs that have the same dimensions as their fully-rendered counterparts, so they provide a slight performance boost while maintaining Grid structure.
But you still get something rendered for every Column, visible or otherwise.
V3 on the other hand silently unmounts non-visible Rows and Columns components from the DOM.
We needed to adopt that pattern to make the performance as fast as it is now, and that's actually also how I solved a tricky bug whereby the 1,000,000 rows example has never fully worked before because we hit the maximum px height limit for the DOM.
(Go to the example and scroll all the way to the final row. It's not 1,000,000 and the styling is all over the place!)
So don't worry -- it's coming! 😄
@jpdriver We're using this component as part of a production system and looking forward to future releases and improvements!
Great work!
Formula's are crucial IMO- otherwise this really just an excel like table. In saying that0 it's still amazing work.
This one does it nicely- but there is no mobile/touch support. https://github.com/nadbm/react-datasheet
What about an 'Undo' feature? If some values are changed, sort happens, columns re-ordered on the data grid then an undo mechanism would be great to roll-back the changes.
Is there a plan to support Footable like responsiveness?
hey @akkie -- i'm not familiar with Footable, but is the idea that you hide certain columns at certain breakpoints? Because if so then the answer is yes!
Yes, this is the idea! They can then be opened with the plus icon at the beginning of the row.