Hi,
i have a Ext.FormPanel and i want to clear this content but removeAll () doesn't work.
firefox message: removeAll is not a function.
please help.
best regards
Hi,
i have a Ext.FormPanel and i want to clear this content but removeAll () doesn't work.
firefox message: removeAll is not a function.
please help.
best regards
it works for me!
https://moduscreate.com/wp-content/t...es/favicon.png
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
see:
http://tdg-i.com/extjsinaction/chapt...plex_form.html
and paste in firebug:
Ext.getCmp('ext-comp-1002').removeAll()
https://moduscreate.com/wp-content/t...es/favicon.png
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
the example works but my code ....
and paste Ext.getCmp ('test').removeAll (); to Firebug i becomeCode:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>test</title> <link rel="stylesheet" type="text/css" href="ext-2.2/css/ext-all.css" /> <script type="text/javascript" src="ext-2.2/ext-base.js"></script> <script type="text/javascript" src="ext-2.2/ext-all.js"></script> </head> <body> <script type="text/javascript"> Ext.onReady(function() { searchPanel = new Ext.FormPanel ({ title: 'test', renderTo: Ext.getBody (), id: 'test', layout: 'form', border: false, cls: 'header1', bodyStyle: 'padding: 5px;', width: 220, defaultType: 'textfield', defaults: { allowBlank: false, width: 100 }, items: [{id: '1', fieldLabel: 'dsf', value: '45', maskRe: /\d+$/}] }); }); </script> </body> </html>
"TypeError: Ext.getCmp("test").removeAll is not a function"
what is wrong???
kind regards
ok.
i have updated my ext to 2.2.1 now and its works fine!![]()