I have an application where I have a nice big grid of fields.
I'd like to edit those fields.
I've got to the point where I can move around the fields using the cursor keys and start editing by typing.
When the user first starts typing I'm creating a TextField and inserting it in the appropriate spot.
Now comes the tricky part, when the user is done editing (they have hit enter) I want to remove the TextField from the DOM. I could call destroy, but I'd much rather reuse the TextField next time, rather than recreate it from scratch.
I can't see an easy way to do this, I can get naughty and call remove on the fields underlying Element and it will be removed from the DOM. Then I need to start mantaining the rendered flag, then the event handlers get themselves in a not. Basically it starts to feel hard, which is not what I've been told Ext is about.
Am I missing something? Does Ext consider reuse of FormFields or am I coding in a throw away world?