开发者

clear text in extjs textfield

开发者 https://www.devze.com 2023-01-31 23:11 出处:网络
I am using extjs textfield in one of the grids in a webpage. This is how i have created the 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

精彩评论

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