PDA

View Full Version : TreePanel as a form field?



bbxx
15 Oct 2009, 12:59 PM
I have a simple treepanel which I want to be part of a form. How do I get the treepanel items to be sent with the rest of the form fields? Do I need a custom component? If so, should I extend the field type or TreePanel type?

jay@moduscreate.com
2 Nov 2009, 7:54 AM
You need to extend tree panel to include methods from Ext.form.Field, such as markinvalid, clearinvalid, setValue, getValue, etc.

Have fun :)