How to check grid content rendering progress, for instance to display a progress bar?
Just use the org.gwt.advanced.client.ui.GridRowDrawCallbackHandler interface. Extensions of this class can be passed to the grid and it will inform your handler about the progress. Note that this feature may make rendering slower. Use it only if you have to render large data sets. Consider the example below. ProgressBar bar = new ProgressBar(“Please wait…”); grid.setRowDrawHandler(bar); bar.show(); grid.display(); ProgressBar is a hypotetic progress bar widget that can be used in your application. It’s important to show it before you invoke the display() method. Otherwise control may ba catched by the grid and the progreess bar won’t have a chance to be shown before rendering finished. The ProgressBar should implement the GridRowDrawCallbackHandler interface. This particular decision is applicable for this sample but you can implement your own handler which will change progress externally.