extended-salmon
extended-salmon15mo ago

MUI Datagrid editable column - compile error

Hi, i'm trying to make an editable column with MUI Datagrid, React and Refine 4.x See the list.tsx source and the error screenshot. I don't understand what it is trying to say. When i comment out the processRowUpdate line all works fine (but the column is not editable ofcourse)
6 Replies
kapa.ai
kapa.ai15mo ago
Hi @rhodan1969. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai15mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I can provide you with some guidance on using MUI DataGrid with Refine. Refine provides a useDataGrid hook that simplifies working with features such as pagination, sorting, and filtering. You can find an example of using MUI DataGrid with Refine in this blog post (https://refine.dev/blog/mui-datagrid-refine). For editable columns, you can refer to the Refine documentation on useEditableTable (https://refine.dev/docs/api-reference/antd/hooks/table/useEditableTable) hook, which provides an example of adding an editable column with buttons. Please note that the examples provided are for Ant Design, not MUI. However, you can use them as a reference to implement editable columns with MUI DataGrid in your Refine application. If you still have issues, please provide the list.tsx source code and the error screenshot, so I can better understand the problem and help you further. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
useEditableTable | refine
useEditeableTable allows you to implement the edit feature on the with ease. Return properties that can be used on Ant Desing's and components.
kapa.ai
kapa.ai15mo ago
<@814803868164685854> kapa.ai is still learning and improving, please let us how it did by reacting below
extended-salmon
extended-salmon14mo ago
nobody ?
like-gold
like-gold14mo ago
Hello @rhodan1969 could you provide us a reproducible example? And/or can you let us know your package versions?
extended-salmon
extended-salmon14mo ago
Here's my package.json. I tried to create a simple case with the current wizard at the website, but so much is changed/different that i don't know how to proceed.