Ext JS - Can I 'chain' methods on a field ??

Posted by dwfresh on Stack Overflow See other posts from Stack Overflow or by dwfresh
Published on 2010-03-15T17:12:48Z Indexed on 2010/03/15 18:39 UTC
Read the original article Hit count: 145

Filed under:

HI, I am just trying to set a field value and disable it at the same time. Can this be done in ext js? The docs are very weak on this subject.

something like this generates errors:

myForm.getForm().findField('start_date').setValue('').setDisabled(true);

I'm used to JQuery which does this sort of thing nicely but haven't had luck with Ext.

Thanks for any help.

© Stack Overflow or respective owner

Related posts about extjs