PDA

View Full Version : Post Grid Render Event



Harsha
9 Aug 2007, 7:42 AM
Hi

I want to do some post processing after Grid is rendered completely. I am using event handler on

Animal
9 Aug 2007, 7:45 AM
What exactly do you need to wait for? Data to be present?

Harsha
9 Aug 2007, 7:47 AM
Yes. I want data to be present on the page.

Harsha
9 Aug 2007, 8:11 AM
Can I have atleast synchronous render event? So that I can write code right after grid.render() statement?

Thanks
Harsha

n0ha
10 Oct 2007, 6:55 AM
Hello,

I have the same problem as original poster. I need to know when has Grid finished rendering, because I then need to bind the rendered content to event handlers.

Render event is useless in this regard for me, as it fires right after the grid layout was constructed.

Thanks
Viktor

tryanDLS
10 Oct 2007, 8:38 AM
I don't understand what you're trying to do. The render fn call is synchronous - it doesn't return until the render process is complete. This is separate from loading the data which is async and isn't complete til the load event fires. Also, if you need to know when the display is updated after the data has finished loading, you call listen to the gridview's refresh event. This isn't showing in the doc due to formatting issues - you can look at the source to see the view's events.