I must have done something out of order the first couple of times. What I did that eventually worked (I swear I did this before, but..) (1) upgrade the project (2) immediately rename the "themes" folder to "themes_2" and then find the Atlas 3 theme (it's a downloadable zip) and drop in there as the new "themes" folder. Then I upgraded my deeplink and community commons modules (just redownloaded and replaced). Then downloaded Atlas Core and the Atlas Web Components/Resources... After that it seemed to work. If datagrid2's or any other CSS is wacked out after an upgrade, it's likely something was just done out of order.
I've looked in the CSS of the theme from the app and I see this
.table {
position: relative;
border-width: 0;
background-color: $background-color;
/* Table Content */
.table-content {
display: grid;
position: relative;
&.infinite-loading {
overflow-y: scroll;
}
}
It just doesn't look like this "Grid" display is being implemented. Everything is "block" which makes me wonder if there's some kind of CSS overwriting the css for the widget
Did you follow the steps here to install the new Atlas Theme modules as part of the Mx 8 to 9 conversion? https://docs.mendix.com/refguide/moving-from-8-to-9#3-7-update-atlas-module-optional
I can definately tell that the datagrid.scss file is not getting loaded from the themesource/datawidgets/web folder. I can see in a blank dummy project it’s being applied in the developer tools, but in my converted project, it isn’t loading these files.
Getting closer. Comparing the two deployment directories…. the new dummy project has two files in the deployment folder: “build_core.html” and “main.scss” file that references css from other themes, including “@use "themesource/datawidgets/web/main.scss" as module7;”
The converted project has only “build_core.html”.
So whatever copies this main.css file to te deployment folder isn’t working in my converted project
I manually copied the main.css file over to the deployment directory of the existing project, but no luck. I also took every single folder I could find under the dummy project that referenced the new data widgets module (widgets folder, javascript folder, css, everything) and copied it over to the existing project folders, replacing them and I did get Mendix studio telling me that I had to right click on the datagrid2 widget to update its definition, which I did. Still… no luck. It’s not bringing the widget’s CSS files in.
I'd add that this can happen if the DG2 column settings are set to manual width and the total of all the columns does not fit. Switching all columns to autofit-content or auto-fill in the columns appearance tab could also solve the issue.
I am having the same issue. I have set and reset all the column column settings and it doesn't fix the issue. I am also seeing some weird behavior in Studio Pro where the column headers do not allign with the column data. It is as if the CSS for the column headers is conflicting with the columns themselves. I am on Mendix 10.18.3 and the Data Widgets 2.30.5.
Follow-up: There was another module DataGrid that was causing the problem. Once I removed that module it started rendering properly.