Git Product home page Git Product logo

Comments (7)

KevinVandy avatar KevinVandy commented on May 18, 2024 1

@domi-glyph This prop no longer exists in MRT.

But the docs are very clear on how to manage the row selection state: https://www.material-react-table.com/docs/guides/row-selection#access-row-selection-state

And in general, how to either manage all of the state you need (like to store in redux or whatever): https://www.material-react-table.com/docs/guides/table-state-management#manage-individual-states-as-needed

from material-react-table.

KevinVandy avatar KevinVandy commented on May 18, 2024

I didn't even realize that none of that code was being triggered. Thanks. Will be fixed in the next update today, though there are a bunch of unstable issues with the select feature in general that still need to be developed.

Congrats on being this repos first issue. I'm curious to learn how dozens of people have suddenly found my (still in alpha) project in the past week.

Join the discord if you are curious about the roadmap for this project as I develop it!

from material-react-table.

KevinVandy avatar KevinVandy commented on May 18, 2024

all I needed to do was swap the order of the props

        <Checkbox
          inputProps={{
            'aria-label': selectAll
              ? localization.toggleSelectAll
              : localization.toggleSelectRow,
          }}
          {...checkboxProps}
          onChange={onSelectChange}
          title={undefined}
        />

from material-react-table.

KevinVandy avatar KevinVandy commented on May 18, 2024

This should now be resolved as of version 0.6.9. However, note that the onRowSelectChange prop name was changed to onSelectChange

from material-react-table.

domi-glyph avatar domi-glyph commented on May 18, 2024

Is this now changed to onRowSelectionChange? how do I obtain the selected rows data? I need to keep the data in redux store and pass it to state so it would keep the selected rows.

from material-react-table.

domi-glyph avatar domi-glyph commented on May 18, 2024

@domi-glyph This prop no longer exists in MRT.

But the docs are very clear on how to manage the row selection state: https://www.material-react-table.com/docs/guides/row-selection#access-row-selection-state

And in general, how to either manage all of the state you need (like to store in redux or whatever): https://www.material-react-table.com/docs/guides/table-state-management#manage-individual-states-as-needed

this works, thanks!

from material-react-table.

MumarAslam avatar MumarAslam commented on May 18, 2024

@KevinVandy onRowSelectionChange is not being fired for me as i am following the
https://www.material-react-table.com/docs/guides/row-selection#access-row-selection-state

from material-react-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.