I’m currently working on React js project with “mui-datatables”: “^4.2.2”. I have a list of data divided on pages with the possibility of selecting an item through a checkbox : My problem : when I select an item in the second page, the component rerender and automatically back to the first page. I think the problem is a set state
Tag: mui-datatable
Unable to batch.delete documents of a subcollection
I have a collection called display and each document inside the display has a subcollection called history. There’s no error, though, it does not delete the documents in Firestore. After selecting the row to be deleted, it is gone when you click delete. However, once you reload the screen, the data deleted was still there, meaning it wasn’t successfully deleted
Mui-Datatable onTableChange is not working when adding a setState
I am using mui-datatable and based on the official example of this codesandbox, you can setState on the tableState. https://codesandbox.io/s/trusting-jackson-k6t7ot?file=/examples/on-table-init/index.js I wanted to get the the tableState.displayData hence, I added this, however, this will result to an error that says: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the
Want hide all row select option but not multiple row select options from MUIDatatables.Is it possible?
I want to hide the checkbox from header row. From which all the rows can be selected. I just want to select multiple option by clicking each. So I want to hide all row select option. Answer I believe that selectableRowsHeader option is what you are looking for. https://codesandbox.io/s/muidatatables-hide-select-all-l8o1z?file=/index.js
how to set column name in mui datatables using object key
I’m trying to use an object key to set the name of a column in MUI Datatables. I’m trying to set one of the column names with the first element of children.childName so that in that column it will display list of child names, but only the first child. In Current way that Im trying this, I am getting no