mui-datatables
mui-datatables copied to clipboard
MUI Datatable filter option is not working for numbers/integer
Expected Behavior
Steps to Reproduce (for bugs)
I am using mui data table from last 8 months.I found one isue Numbers/Integer not getting search.if i am converting numbers into string then its working fine but after that column sorting option is not working. 2. 3. 4.
Your Environment
| Tech | Version |
|---|---|
| Material-UI | ^4.11.0 |
| MUI-datatables | ^3.5.0 |
| React | ^16.14.0 |
| browser | chrome |
| etc |
same for me
@anopperl @opandey007
hi did u find solution for this?
Hey I specified types for my column which solved the issue
Link to doc: https://mui.com/x/react-data-grid/column-definition/#value-formatter
example:
const columns = [
{ field: "sensor", headerName: "Sensor Name", flex: 1, minWidth: 150, type: 'string' },
{
field: "min",
headerName: "Min Value",
flex: 1,
minWidth: 150,
type: 'number'
}
]
This is a MUI issue - I get the same issue using standard functionality in MUI rather than MUI-datatables.