Skip to content
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

datagrid not updating state on preview mode #1852

Closed
Prajapati-developer opened this issue Apr 4, 2023 · 7 comments · Fixed by #1856
Closed

datagrid not updating state on preview mode #1852

Prajapati-developer opened this issue Apr 4, 2023 · 7 comments · Fixed by #1856
Assignees
Labels
status: waiting for author Issue with insufficient information

Comments

@Prajapati-developer
Copy link

Prajapati-developer commented Apr 4, 2023

image
datagrid not updating state in preview mode as data is a async and taking time to populate
@Janpot

@Janpot
Copy link
Member

Janpot commented Apr 4, 2023

Can you share a full reproduction? If you don't want to create a repository just for that, maybe just zip the ./toolpad folder and upload in a comment.

@Prajapati-developer
Copy link
Author

toolpad.zip
here you can find that manually query is also not working in my case and in preview mode it is showing error state in data grid it is fine if i can show user friendly message. how can i navigate one page to another by using param on button click .
Thanks in advance

@bharatkashyap
Copy link
Member

@Prajapati-developer I think you might have missed adding all of the files in your project - I can only see one component file in the folder with a CellRenderer component inside it:

Screenshot 2023-04-04 at 6 55 48 PM

Screenshot 2023-04-04 at 6 55 30 PM

Perhaps you could share a screenshot of the query which is not working for you

how can i navigate one page to another by using param on button click

If I understand correctly, you intent to navigate from one page to another while including params in the URL. This feature is being shaped and you can track its development in this issue #1800

@Prajapati-developer
Copy link
Author

manage-user.zip
attached files here .

@bharatkashyap
Copy link
Member

manage-user.zip attached files here .

Thanks @Prajapati-developer, the usersList query which the Datagrid was using to show data had a transformation enabled which was erroring out - same issue as in #1855 which is fixed by #1856, and will be available in the forthcoming release (today).

Till then, I removed the transformation (which you don't actually need since it just returns the data as it is) and your page seems to work:

Screenshot 2023-04-05 at 1 58 13 PM

@prakhargupta1 prakhargupta1 added the status: waiting for author Issue with insufficient information label Apr 12, 2023
@prakhargupta1
Copy link
Member

Hi @Prajapati-developer This has been fixed in the linked PR and is part of Toolpad version v0.1.3.
Can you please check and confirm? Thanks!

@github-actions
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Issue with insufficient information
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants