Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to check grid content rendering progress, for instance to display a progress bar?

0
Posted

How to check grid content rendering progress, for instance to display a progress bar?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123