PDA

View Full Version : Dynamic Fieldset Handling



Srikanth474
15 Mar 2012, 8:09 PM
Hi,
I am creating a form panel which has a fieldset. i need to have a dynamic implementation of that fieldset.
I am adding the same fieldset on click of a button.

I want to have functionality to delete the fieldset as well. how can i delete the fieldset without knowing the id of it. i will have multiple fieldsets and dont know which fielset has to be deleted programatically.

That would be great to have a tool icon for fieldset and on click of that we can remove that fieldset, but looks like fieldset doesnt even have tools.

Thanks in Advance
Srikanth

Srikanth474
16 Mar 2012, 4:48 AM
I am able to delete it by getting the parent id with button.up['xtype':'fieldset']

khmurach
17 Mar 2012, 3:16 AM
Here is my demo http://ext4all.com/post/dynamic-fieldset-add-remove

32852