开发者

EXTJS Textfield setdisplayed false

Iam using two textfields (login and password ) and button in composite field, when click on button disable composite field and display another composite field like bellow

txtPwd1.getEl().up('.x-form-item').setDisplayed(true);txtPwd.ge开发者_如何学编程tEl().up('.x-form-item').setDisplayed(false);

but this is worked in IE only not working in firefox and chrome......

Please help me

Thanks in advance


The reason it isn't working is you should be using the setVisible method. I think that the reason that the setDisplayed is working in IE is that it must try and re-render the panel for some reason. setVisible doesn't need to be rendered for it to make the field invisible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜