PDA

View Full Version : How to trigger onRender() call?



deriv108
10 Feb 2010, 1:47 PM
I have a simple grid which implements onRender() method. The grid is like "Basic Grid" in GXT examples and itself works fine.

But I'd like to have this grid "rendered" whenever I select it. In other words, I'd like its onRender() be called every time. I have tried TabItem.layout(true), tabPanel.setLayoutOnChange(). Nothing happened.

How to trigger the onRender() call, so it can load new data and even change the grid title?

I'm new to GXT, and I'm using GXT 2.1.1 and GWT 1.7.

mikeshi
11 Feb 2010, 1:17 AM
Do you mean refresh the grid? you can call GridView.refresh

deriv108
11 Feb 2010, 11:19 AM
Yes, I try to refresh the grid. Thanks for helps to slove my problem.

Laugh at my question post... don't call onRender() to refresh the grid.

Thanks again.