-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
ui.aggrid does not show values if there is a period in the column name #1417
Comments
Thanks for reporting this issue, @dashorty! ui.aggrid({
'columnDefs': [{'headerName': 'First name', 'field': 'name.first'}],
'rowData': [{'name.first': 'Alice'}],
}) That's because AG Grid tries to access I'm not sure if this is a bug in NiceGUI or rather a limitation of AG Grid. Maybe NiceGUI should warn about column IDs containing dots? What do you think, @dashorty? Do you have an idea in mind how to approach this? |
I think a warning at runtime and/or a note in the documentation would be sufficient. |
According to https://stackoverflow.com/questions/58772051, it's possible to show field names with dots by suppressing Aggrid's parsing for nested structures |
Thanks for the hint, @firai! |
It seems to me that having dots in the field names would be much more common than trying to display nested json structures, so I would think so. But as soon as I say that, I'm sure we'll get this: https://xkcd.com/1172/ |
Ok, in 325dfcd I set the |
Does the complex object demo that you added need to explicitly set the flag to |
@firai I don't think so, because it doesn't use |
Description
If there is a period in the Name column, the value of this column is not displayed.
I noticed when I wanted to normalize a JSON with panda.
Here is an example:
The text was updated successfully, but these errors were encountered: