Expandable Row not visible (spinner shown instead)
The expandable row gets into an invalid state not showing the expandable row template and showing a spinner instead.
It can be reproduced on the UI Grid tutorial page by expanding a couple bottom rows:
Go to expandable grid tutorial page: http://ui-grid.info/docs/#/tutorial/216_expandable_grid Scroll to the bottom and expand the last row, 499, by clicking on the '+' sign. Start scrolling down to see the content of the expanded row. Notice that the expandable template does not appear and a spinner appears instead. Example from the tutorial.

I am facing the same issue, is there any workaround for this?
i am also facing same issue, any temporary fix will be of great help.
I did notice that the data appears after any window resize, even if I only nudge the window dimensions by a couple of pixels.
I've tried forcing a core.notifyDataChange and core.refresh after the expand event has triggered, but it doesn't help.
Edit 1: I've also tried forcing a variety of refresh events on a $timeout. It seems to work if I set the $timeout interval to one second or more, but that's not really a solution for me.
Edit 2: Managed to avoid the problem by setting gridOptions.virtualizationThreshold to be the dataset length just after the dataset is loaded. Adds a bit of noticeable lag when scrolling the grid, though, as presumably I'm bypassing the virualization performance benefits.
Any config suggestions or workarounds very welcome.
בתאריך 8 בנוב׳ 2017 21:15, "Tim Richard" [email protected] כתב:
+1, any config changes or workarounds very welcome.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/angular-ui/ui-grid/issues/6205#issuecomment-342928212, or mute the thread https://github.com/notifications/unsubscribe-auth/AKWQqt15ZnBxgVo2ldHCFAGWr0Uw-4plks5s0f3rgaJpZM4NT6y6 .
Same problem #6253
Same Problem. Can I get a work around?
~~I believe this change was responsible: https://github.com/angular-ui/ui-grid/commit/b2ecf4224b5f8355fded7086f0e811eafb088ddc#diff-90b7112d1f3b674fa5c23b308e2ed688~~
~~I think I can solve this by changing the order of those lines and ensuring that the template is compiled before appending it.~~
Nevermind, that commit is not responsible. But I did notice that when you scroll all the way to the bottom of the page, the '$destroy' listener is getting triggered, which sets expandedRendered to false and causes the spinner to display.
@timericard
I did notice that the data appears after any window resize, even if I only nudge the window dimensions by a couple of pixels.
I've tried forcing a core.notifyDataChange and core.refresh after the expand event has triggered, but it doesn't help.
Edit 1: I've also tried forcing a variety of refresh events on a $timeout. It seems to work if I set the $timeout interval to one second or more, but that's not really a solution for me.
Edit 2: Managed to avoid the problem by setting gridOptions.virtualizationThreshold to be the dataset length just after the dataset is loaded. Adds a bit of noticeable lag when scrolling the grid, though, as presumably I'm bypassing the virualization performance benefits.
Any config suggestions or workarounds very welcome.
### Setting virtualizationThreshold to same as number of items per page resolved the issue.
Thanks for contributing! This repository has been transferred, and we're preparing the new 5.x release. We're closing older issues and pull requests as part of the reset. Please join us on Discord to follow the work or continue the conversation: https://discord.gg/Baz4w8ZWN