Simple-Paging-Grid icon indicating copy to clipboard operation
Simple-Paging-Grid copied to clipboard

pageRenderedEvent fires before table added to the DOM

Open MrKWatkins opened this issue 11 years ago • 0 comments

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.

MrKWatkins avatar Jul 14 '14 17:07 MrKWatkins