PDA

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


evankstone
09-07-2007, 06: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
09-08-2007, 07:49 PM
Try to put it to store's load event handler or GridView's refresh event handler.

evankstone
09-10-2007, 01:10 PM
...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
09-10-2007, 02:24 PM
...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
09-10-2007, 03: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