开发者

clear text in extjs textfield

I am using extjs textfield in one of the grids in a webpage. This is how i have created the textfield

{
            xtype: 'textfield',
            id: 'logicrelation',开发者_如何学C
            allowBlank: true
}

I want to clear this textfield in one of the handlers. I tried clearing it like this, Ext.get('logicrelation').setValue(""); but I get a message in the console that the setValue function is not available. I tried reset function also and that did not help either. Appreciate your help

Thanks, Sandeep


Ext.get returns Ext.Elements.

You are looking for Ext.getCmp.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜