PDA

View Full Version : Performing an action when the grid is totally loaded & rendered



evankstone
7 Sep 2007, 3:03 PM
I'm having a little trouble with event timing, I think...

I have a function that determines if a grid cell in the first row is visible in the viewport and starts editing in that cell if it is visible, and it seems to work fairly well.

The only problem is that I'm doing some anchoring & jockeying of the grid's position too, so what I really need is to trigger this function when all the loading/rendering/moving is done.

The only problem is that it's all dependent on event timing, so what would be the best solution for calling this function when all that other stuff is done?

thanks!

jsakalos
8 Sep 2007, 4:49 PM
Try to put it to store's load event handler or GridView's refresh event handler.

evankstone
10 Sep 2007, 10:10 AM
...in 1.0.1a does GridView have a refresh event? i didn't see it in the documentation (but that doesn't mean it doesn't exist i guess... ;) )

jsakalos
10 Sep 2007, 11:24 AM
...in 1.0.1a does GridView have a refresh event? i didn't see it in the documentation (but that doesn't mean it doesn't exist i guess... ;) )

I've read source, not doc, and there it is. If it's not in 1.0.1a then upgrade - versions are compatible.

evankstone
10 Sep 2007, 12:02 PM
sorry... i got sidetracked for a bit there.

yes - according to the code, it's got a refresh event. it's just not in the docs. so i'll give it a try and see if it does what i need it to.

otherwise i have another couple of ideas to research.

thanks!

:D