Hi,
Ideally you should not clear the RootPanel contents.

I think the problem is its going into infinite loop -hence the problem.

Onclick of button second time,just clear the grid or the parent elements and
load the grid again which can be done by creating the design of a grid in a
function and if possible use remove function if you want to destroy the
original instance completely.

I had faced the same issue which got cleared.

Thanks,
Kinjal

On Sun, Sep 6, 2009 at 2:34 AM, bhanu <[email protected]> wrote:

>
> I have a button called UserList in my application which is used to
> display
> all the users name,role and designation in the grid. When I click the
> button
> first time it displays the grid with the right values. Second time
> when I click
> the same button It is getting hanged the application. thats means
> cursor is showing
> as busy.
>
> I have used three div ids. slot1,slot2,slot3.when I click
> the userlist button all the widgets inside the slot1,slot2,slot3 is
> getting cleard.
> Here is I am getting the problem. If I have not used RootPanel.get
> ("slot1").clear() ,
> userlistbutton will work fine without hanging the application. But the
> the widgets will not get cleared.
>
> so how can I avoid this problem.
>
>
> thanks
> bhanu
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to