776 questions
-3
votes
0
answers
21
views
Search cursor jumps out in Datagrid pro in live data updates [closed]
Am using mui data grid pro table with a live data update from server sent event, ans using default in built search functionality GridToolbarQuickFilter , When data gets updates cursor from search box ...
0
votes
0
answers
27
views
Mui Data Grid v8 header button not filtering grid
version
my code is using v8.13.1 of mui/x-data-grid with typescript
Scenario/Outcome
I am trying to have both an inline button with each row that will filter the frontend table and call the api to ...
1
vote
1
answer
114
views
The parent DOM element of the datagrid has an empty height [duplicate]
After I recently upgraded my MUI X packages. I see the following error:
MUI X: useResizeContainer - The parent DOM element of the Data Grid has an empty height.
Please make sure that this element has ...
0
votes
0
answers
42
views
How to always keep specific values (e.g. "untouched") at the bottom when sorting a column in MUI DataGrid?
I'm using MUI X's DataGrid in a React project and I want to sort a time column that contains either a date string (e.g., "24 September 2024, 10:48 am") or the literal string "untouched&...
0
votes
1
answer
54
views
Styling datepicker textArea
I was trying to style the textArea of datePicker, how ever I can apply styling to calendar drop down but failed to apply styles to textArea. The code I used is
<DatePicker
label="...
0
votes
0
answers
23
views
Can you forward type argument to styled MUI DataGrid component?
I'm working on extracting some styled MUI DataGrid components which are defined in multiple places into a single place, and am running into an issue with the type argument.
Using a default ...
0
votes
1
answer
79
views
How to position checkbox column in the middle of MUI X Data Grid?
I'm using MUI X Data Grid (Material-UI) and trying to position the checkbox selection column in the middle of my grid. Currently, even though I define the checkbox column in my column definitions ...
0
votes
1
answer
78
views
How to make each MUI TextField input take full width (one per line) in a React form?
I'm working on a form using Material UI and React. I structured my form using a layout, and each input is wrapped inside a so they should take up the full width.
However, the inputs appear centered ...
0
votes
1
answer
110
views
Material-UI, merging slots from props to Child Component
I have a lot of datagrid components that are very similiar to each other minus some params that I pass as props, they share the same Custom Footer inside of the slots and some styling
export default ...
1
vote
0
answers
126
views
What is the best way to filter a column containing a string array in MUI datagrid?
I have a mui datagrid with a column containing an array of strings. I want to compare this to an array of strings that the user selects from a filter list and show the row if any of the items in its ...
2
votes
1
answer
299
views
Why are params undefined in valueGetter but not in renderCell when using MUI datagrid?
I'm trying to set the value of a column based on the value of other columns in my datagrid. It works when setting what to render in rendercell but params is undefined when passed to valuegetter. What ...
0
votes
0
answers
82
views
How to implement infinite scroll for MUI X Data Grid with large datasets in an object (load 10 records at a time for each list)?
Hi Stack Overflow community,
I am working with MUI X Data Grid Premium and I have an object with multiple keys (e.g., a, b, c), where each key holds an array of 1000 records. I want to implement ...
1
vote
1
answer
315
views
How to add endAdornment button in DateTimeField after migrating to @mui/x-date-pickers v7?
I recently upgraded from @mui/x-date-pickers v6 to v7, and my DateTimeField component stopped working due to a TypeScript error.
In v6, I was able to add a custom button to open the calendar using ...
0
votes
0
answers
60
views
Ignore MUI default styles generated from @emotion/jest
I use a DataGrid from MUI 6(https://v6.mui.com/x/react-data-grid), and I've a snapshot tests to track stylings I've added https://www.npmjs.com/package/@emotion/jest, but for around 1500 lines it's ...
1
vote
1
answer
121
views
Not able to group MUI DataGrid Pro column without using paid version
I am trying to group the columns in MUI data grid pro table but it seems it's not possible without using paid version.
The current version used is @mui/x-data-grid-pro": "^6.18.2" and ...
0
votes
1
answer
60
views
Any way to use InputBase with Autocomplete with multiple items?
I'm using an autocomplete inside the MUI DataGrid in edit mode, but due to TextField it renders additional borders.
<Autocomplete
multiple
freeSolo
value={...
4
votes
1
answer
174
views
React MUI X Datagrid component: filtering not working
I am using the MUIX Datagrid and filters are not refreshing the Datagrid data after filtering in one of the columns of the DataGrid component.
Here is my DataGrid code:
const [dataRows] = ...
0
votes
0
answers
42
views
How can I detect row changes originating outside MUI Data Grid and trigger a function
I'm using MUI Data Grid to display a list of items (Purchase Orders). Each item can be edited or updated on the server (via React Query), which means the data can change outside the grid. I'm aware ...
1
vote
1
answer
544
views
Material UI: DataGrid server-side pagination flickering data when using swr
I want to display server-side paginated data on a Material UI DataGrid with data fetched using swr. I've been working through MUI's introduction example for server side data in DataGrid which is using ...
0
votes
0
answers
40
views
Data Grid - Editing - MUI add from API
I'm using Data Grid - Editing of mui to add a new row
When I click su Add Row I set a new row with empy field:
setRows((oldRows) => [...oldRows, { id: 0, aliquota: 0, descrizione: '', tipo: '', ...
0
votes
2
answers
52
views
Can no longer access "children", "value" and "formattedValue" fields within a slot override component in the v7 mui-x-datagrid
I've recently upgraded the mui-x-data-grid to v7 from v6. We had an override for the cell slot:
<Datagrid slots={{cell: CellBase}} />
In which we could access value, formattedValue, and children ...
-1
votes
1
answer
65
views
How can I change the hover color of the MUI GridToolbarFilterButton options
enter image description here
enter image description here
I have been trying to change, the native select option hover color of the Native, although I couldn't.
I want the hover color of the options ...
0
votes
1
answer
73
views
display a datagrid inside a datagrid
I am working with MUI’s DataGrid to display a list of tasks. My goal is to have an expandable detail row directly under each task row when clicked. For now, I am trying to add a new row under the ...
1
vote
1
answer
379
views
Translate mui Data Grid column headers
I use MUI Data Grid for a table and now I am working on i18n localization. I encountered a trouble where I can't translate column headers due to them being a static object and not a react component. ...
-1
votes
1
answer
256
views
Exporting selected rows from mui/x datagrid as a csv
I am working with the MUI data grid and im trying to implement a feature where I can export all the rows of a csv that I choose.
Here's my current setup for handling row selection and exporting the ...