ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Expandable Row not visible (spinner shown instead)

Open marcelsystelab opened this issue 9 years ago • 9 comments

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.

image

marcelsystelab avatar May 08 '17 13:05 marcelsystelab

I am facing the same issue, is there any workaround for this?

aitorMolinuevo avatar Jun 07 '17 09:06 aitorMolinuevo

i am also facing same issue, any temporary fix will be of great help.

nitinayir8 avatar Sep 19 '17 06:09 nitinayir8

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.

timrichard avatar Nov 08 '17 19:11 timrichard

בתאריך 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 .

yraveh avatar Nov 08 '17 19:11 yraveh

Same problem #6253

aliexalter avatar Feb 07 '18 12:02 aliexalter

Same Problem. Can I get a work around?

krishna0703 avatar Mar 21 '18 02:03 krishna0703

~~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.

mportuga avatar Apr 02 '18 13:04 mportuga

@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.

ranupoju0126 avatar Dec 12 '18 21:12 ranupoju0126

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

orneryd avatar Aug 12 '26 23:08 orneryd