revolist / revogrid

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
https://rv-grid.com
MIT License
2.68k stars 166 forks source link

Feature: Expandable rows / "Item details" #366

Open AtishaGarinMchd opened 1 year ago

AtishaGarinMchd commented 1 year ago

It would be great to have other fields visible after an item click.

One example here.

This example is one level of complexity further (set of rows) and such feature could be separate, but there is still the concept of expandable "additional details" for a given row.

atsepkov commented 1 year ago

You can already accomplish this by hooking into the revogrid events (https://revolist.github.io/revogrid/guide/api.html#properties). In particular, beforecellfocus can be used to render the selected cell/row differently from the other ones. I use this technique myself to hide/unhide additional rows when user clicks on a cell. Here is an example of this in action: https://investomation.com/tools/napkin (row names with "+" in them can be expanded to show more rows).