Comments (7)
@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.
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.
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.
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.
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 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.
@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)
- Total Row count gets lost when grouping
- Pagination size error when scale
- Checkbox from "enableRowSelection" wont change status
- Lazy Sub-Rows Example refetching the whole table HOT 3
- How to make checkbox position fix? HOT 2
- Expandable Details Panel
- Filters - Clearing autocomplete filter using "Clear Filter" rather than the 'X' button doesn't clear the selected value.
- Documentation needs update for rowVirtualizerInstanceRef.current?.scrollToIndex with virtualized table and renderDetailPanel
- virtualizer initialOffset seems to have no effect
- When changing column width table scrolls back to the top
- Data not displayed on initial page load with virtualization enabled and table data passed as props to main component
- Can we drag a column using column header instead of drag icon in Material-React-Table?
- Infinite Scrolling - Infinite Loop of loading and stop scrolling after set maxPages in useInfiniteQuery HOT 2
- MRT Grid Infinite scrolling with RTk Query HOT 1
- Inability to Drag Columns on Tablets, Mobiles, or Touch Devices HOT 1
- MUI style breaking in UI
- Column editSelectOptions array with label and value do not select label in edit mode
- Strange Scrolling behaviour with Header Groups and column virtualization HOT 1
- muiPaginationProps does not include rowsPerPage HOT 2
- onColumnVisibilityChange behaves strange when clicked the show menu column showAll or hideAll button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-react-table.