PDA

View Full Version : Ext.panel Help Urgent



shailu
23 Feb 2011, 7:47 AM
Hi All,
m using Ext.panel and adding Checkbox group on store load ,but my problem is if 2nd time store get reload then contain in panel is double ( previous contain is also get display in panel ) but i want new contain not previous one :( plz help me

mitchellsimoens
23 Feb 2011, 12:31 PM
So you want to only have the latest group and get rid of previous ones?

You can use the removeAll() function on the panel to remove all it's children and then like you have been doing add the items you want.


panel.removeAll();
panel.add(items);

shailu
24 Feb 2011, 8:24 AM
thanks mitchellsimoens its works :)

mitchellsimoens
24 Feb 2011, 8:27 AM
thanks mitchellsimoens its works :)

Cool!!