PDA

View Full Version : added check box not removed



rhytha
19 Mar 2010, 6:31 AM
Hi,

I have added a check box through the below code



Ext.getCmp('tags_menu').add({height: 30, items: new Ext.form.Checkbox({name: 'cb-col-4', id: 'cb-col-4', boxLabel: 'Item 4'})});
Ext.getCmp('tags_menu').doLayout();


The addition is working fine, but the remove is not working properly. I have used the below code for the remove



Ext.getCmp('tags_menu').remove(Ext.getCmp('cb-col-4'), true);
Ext.getCmp('tags_menu').doLayout();


Kindly give me some suggestions.

thanks in advance :)

Regards,
Riyaz

23 Mar 2010, 7:34 AM
No need to call doLayout after a remove, it's already done.

is this happening in Ext JS 3.x?

rhytha
26 Mar 2010, 3:38 AM
Thank you... i will try :)