score:3
Accepted answer
You can use the tableRef
and onSearchChanged
prop
This seems to work for well:
const tableRef = React.useRef();
...
<MaterialTable
tableRef={tableRef}
onSearchChange={() => {
console.log(tableRef.current.DataManager.filteredData.length);
}}.....
You can also find the filtered data in the few other paths:
tableRef.current.DataManager.data
tableRef.current.state.data
Source: stackoverflow.com
Related Query
- How to get ReactJS Material-table search results count
- Ant Design - How can i get count of table row after filtering?
- How can i get array of object from this data for state and count in reactjs
- How to delete a specific textfield inside a table onclick of a button using reactjs & material ui
- ReactJS + Material Design: How to get theme colors outside component?
- How to pass value to component in order to delete table row? ReactJS and Material UI
- How do I fetch search results from multiple API using reactjs
- How to change color of checkbox material table ReactJS
- How to get the index of the selected item from a dropdown in ReactJs and material UI?
- How to filter table rows with search bar in Reactjs
- How to add styling which works in material table in reactjs
- How to get and link nested value to field passing columns to Material Table
- Reactjs - How to load and map data in reactjs material table
- How to properly get message count on form submission using reactjs
- How to get my array object into a material ui table
- How to get table in Reactjs
- How to highlight a specific table cell in material UI table in react based on a text search
- How to create a table that has a tableHead cell that consists of many parts in reactjs / css using material ui
- How to get MongoDB values and display in a table using ReactJS
- How to get Django and ReactJS to work together?
- How to get selected value of a dropdown menu in ReactJS
- How to get input text value on click in ReactJS
- How to get pasted value from Reactjs onPaste event
- How to submit the form by Material UI Dialog using ReactJS
- How to get a onClick to work in a row - reactjs
- How to load more search results when scrolling down the page in React.js?
- How can I get the URL address from the browser in ReactJS (servers URL)
- How can I change a width of table Material UI / React?
- How to use drag and drop functionality both columns and rows in my React Table - ReactJS
- How to change the text color of the selected row in material ui table
More Query from same tag
- How to render a new message without re-rendering previous messages in react?
- Redirect React Router from Context Provider
- React OnClick iteration
- Passing form values to onclick handler in react.js
- Error while installing React - "Cannot find module 'block-stream'
- useEffect and a busy thread
- How do I use a fetched variable as initial state for material UI datepicker?
- Both fullWidth and className on a MUI component
- React-Router 1.0 alternative to Router.HistoryLocation
- Can someone explain me the difference between both this if conditions in React?
- React Yup schema
- Why the initial value of the hooks cannot be given an empty object?
- How to render a popup by calling a function?
- How to get Route name from current URL
- retrieve data from localstorage to be able to publish a post
- Iteration over FileList, React, Typescript
- How to format date in ReactJS
- Optimize page load of multiple pages
- Cronjob in react JS
- reactjs try catch in render does not catch children errors
- React : Setting scrollTop on Div doesn't work in a specific case
- How to only change selected state value from useDispatch function in redux
- add a plugin from a library in tailwind
- How to add round edges on top bar of dynamically created stacked bars using Recharts?
- not able to share state between two components in react
- How to access the methods of the react-google-maps components?
- Add API Key to graphql request using Apollo Client and React
- Target container is not a DOM element in react
- How do I call an event handler or method in a child component from a parent?
- How to set state in a React component using this.setState without explicitly passing the field name to update?