PDA

View Full Version : Deleting elements in a FormPanel



17 Mar 2011, 1:19 PM
I 'm working with a formPanel and I need to delete some of its items, but the problem is after I delete a item, the view is not refreshing ( I'm using doLayout()). How can i refresh the view ?

drunkmoose
17 Mar 2011, 1:52 PM
I've read by other credible posters here that deleting elements is not recommended.

Have you tried simply hiding and disabling said controls then doLayout() ?

17 Mar 2011, 2:00 PM
the problem is that i also have a grid and with a change of selection i have delete the items of the formPanel and make new itemsthe problem is that i also have a grid and with a change of selection i have delete the items of the formPanel and make new items. I could try first hide the items and then delete