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

Add stickyFirstColumn prop

Open vinicoder opened this issue 1 year ago • 5 comments

PR to introduce a new feature where the first column can be sticky.

 <DataSheetGrid
    value={data}
    onChange={setData}
    columns={columns}
    stickyFirstColumn //  Use this to make the first column sticky
 />

https://github.com/nick-keller/react-datasheet-grid/assets/3522573/2e80807c-da68-45f6-a699-e8f2c06673c7

vinicoder avatar Dec 18 '23 03:12 vinicoder

Deploy Preview for react-datasheet-grid canceled.

Name Link
Latest commit b402e9afc016f8a7c8b0f30f0a19670eb8b7d13c
Latest deploy log https://app.netlify.com/sites/react-datasheet-grid/deploys/657fb670fc5e3d0008b109ab

netlify[bot] avatar Dec 18 '23 03:12 netlify[bot]

From what I can see on your video, the selection rectangle behaves strangely. This is a complexe task that might need a deep re-work

nick-keller avatar Jan 18 '24 13:01 nick-keller

From what I can see on your video, the selection rectangle behaves strangely. This is a complexe task that might need a deep re-work

The only issue I see is that the selection rectangle is floating, so it doesn't behave as well as it should with the sticky column. I didn't want to invest much more time in this because first I wanted to know what you think about it, being the project's creator. If you can, test this branch to see how it is; the video can be misleading.

We are using your lib in our project; this is the only missing feature. Do you mind if I create a new NPM package with this PR? We have already tested it, and it will work for our needs.

vinicoder avatar Jan 18 '24 13:01 vinicoder

Hi @nick-keller can we have sticky left option for first 2 columns

Sankarmukesh avatar Feb 07 '24 15:02 Sankarmukesh

@nick-keller @vinicoder can we stop rerendering when datasheetgrid is scrolling is that possible?

Sankarmukesh avatar Feb 08 '24 05:02 Sankarmukesh