mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

MUI Datatable filter option is not working for numbers/integer

Open opandey007 opened this issue 3 years ago • 4 comments

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

opandey007 avatar Jan 18 '22 06:01 opandey007

same for me

anopperl avatar Aug 10 '22 08:08 anopperl

@anopperl @opandey007

hi did u find solution for this?

techinit16 avatar Oct 20 '22 10:10 techinit16

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'
  }
]

modyabhi avatar Nov 20 '22 19:11 modyabhi

This is a MUI issue - I get the same issue using standard functionality in MUI rather than MUI-datatables.

JonathanTaylor9 avatar May 05 '23 20:05 JonathanTaylor9