PDA

View Full Version : How to clear the contents in ListStore from ListView?



wilsonhew
10 Mar 2011, 10:59 PM
Hi,

I am new in GXT. Anyone can tell me how to clear the contents in the ListStore from ListView? Please give me a snippet of codes

Please help. Thanks.

Regards,
Wilson Hew

wilsonhew
11 Mar 2011, 1:10 AM
I found the method to clear the contents.

Clear it under ListStore which is using method removeAll().

blay
11 Mar 2011, 2:10 AM
I haven´t used ListView, but have you tried to use:


store.removeAll();

Edited: I´ve just seen you have found it ;)