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

grid refresh events

Open pr1ntr opened this issue 12 years ago • 6 comments

Not sure where else to look for the answer to this. I can't for the life of me figure out how to get an event for when the grid is done rendering. Is there some way to do this? I am trying to apply some jquery stuff on elements inside the grid, but alas dont know when they are ready.

pr1ntr avatar Sep 29 '14 23:09 pr1ntr

In theory the "onRegisterApi" callback will do this, there is also now a renderingComplete event from the core api (http://ui-grid.info/docs/#/api/ui.grid.core.api:PublicApi). Both of these are triggered at an identical time.

In my own code, I still have a nagging concern that this isn't actually rendering complete, as sometimes the Api doesn't include everything I thought it might. I haven't had time to look into this as yet, but should do so.

PaulL1 avatar Sep 29 '14 23:09 PaulL1

I believe this is now resolved, closing.

PaulL1 avatar Oct 15 '14 00:10 PaulL1

This issue is not resolved. rowsRendered and renderingComplete are firing before the row elements are available in the DOM. Can this be reopened?

Here's a test case (check console output):

http://jsfiddle.net/xaw6k6m0/

cfsilence avatar May 08 '15 21:05 cfsilence

+1

nadavelyashiv avatar Nov 09 '16 08:11 nadavelyashiv

+1 This is always a hard problem ! It leads to some crash on my production App, probably on slow computers. Because some filtering has to be made after Grid is rendered !

A not very good alternative I use now because of this issue, is $watch the actual HTML within the grid, look for '.ui-grid-row' elements, and once I find them I remove the $watch. Very consuming but I couldn't get anything else to work.

nadavelyashiv avatar Jul 23 '17 09:07 nadavelyashiv