Simple-Paging-Grid
Simple-Paging-Grid copied to clipboard
pageRenderedEvent fires before table added to the DOM
I'm using the pageRenderedEvent to wire up some extra functionality to data rows. However the first time it fires it is called before the table is added to the DOM, so if I use jQuery to look for rows inside my grid
it doesn't find any. When it fires subsequently (e.g. after switching pages) then the table and rows are there and everything works fine.
A workaround is to initially populate the grid with an empty array for the data, then call refresh to fill it up.