-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Custom column/template not being rendered after v3.0.7 #4532
Comments
I have the same problem after upgrade to 3.0.7. Modifying condition as lebolo suggested works. |
Hey @oriondean, thanks for taking a look at this. I set up a plunker that reproduces the problem (column header is not rendering). In I dummied down the custom selection column functionality, so you'll see some superfluous code around filtering. Let me know if you have any questions! |
Hi @oriondean, just pinging. Did you or anyone else get a chance to look at this? |
I've taken a initial look, It seems to be a race condition dependent on how long it takes to load the cell template. Sometimes, the columns are built before the template has loaded. Unfortunately, I've not had time yet to implement a solution to this problem |
I've identified the issue and implemented a fix. Once the template was retrieved from the URL, it was setting the grid data to when the request was first made, rather than using the most recent value. The guard I introduced saved on some unnecessary calls to buildColumns and preCompileCellTemplates. These calls were always made after the template was retrieved and used the most recent grid data. |
After updating to v3.0.7, one of my columns (which makes use of custom
headerCellTemplate
andcellTemplate
in the column definition) is no longer being rendered (the column shows up blank and there is no HTML for it).The column is initially pinned to the left (
pinnedLeft: true
in column definition) and I use it as a custom selection column (one that I can control the filtering/behavior of). The templates are based on the default templates with minor differences.The related change is #4428 (see issue #4386). Particularly here:
Before
After
If I remove
!hasColumns
from the if statement, my column renders again. Is the logic being implemented wrong? I don't understand enough about what @oriondean was trying to do here.The text was updated successfully, but these errors were encountered: