-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Uploading files to mui x datagrid making it understand that cell is updated after file upload #12011
Comments
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷. A live example would be perfect. You can find a examples and guides on how to find templates in our docs with which you can provide examples for your specific use-case: Support - Bug reproduction. Thank you! 🙇🏼 |
I guess i have solved this via this code:
now when i upload the file in cell i can see that row is being updated. Previously the value i see related to datasheet column was this -> "" now i can see the file related properties. |
Great! Is this resolved for you now? |
I guess it is resolved. However can i ask something related to pagination? |
Yes, there are no limitations on the number of pages afaik. Since the original issue is resolved I will close this now. Thanks! 🙇🏼 |
How did we do @catdalf? |
I have 2 columns that are for file upload. I have used
const FileUploadCell = ({ onChange, field, id }) => (
<input type="file" onChange={(event) => onChange(event, field, id)} name={field} accept=".pdf, .doc, .docx, .xls, .xlsx, .csv" required />
);
this const to assign it to columns. Under my fields i use
renderCell: (params) =>
this code to create a custom cell which is for file uploading. However row never gets updated after i make the file upload. I also need to save this file to database but since the row does not even recognize this change in react side i also can not send it to backend side to save it to database.
The text was updated successfully, but these errors were encountered: