Results 1 to 6 of 6

Thread: FormPanel.removeAll () doesn't work

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    12

    Default FormPanel.removeAll () doesn't work

    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

  2. #2

  3. #3

  4. #4
    Sencha User
    Join Date
    Nov 2008
    Posts
    12

    Default

    the example works but my code ....

    Code:
    <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>
    and paste Ext.getCmp ('test').removeAll (); to Firebug i become
    "TypeError: Ext.getCmp("test").removeAll is not a function"

    what is wrong???

    kind regards

  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    It's not in Ext 2.2.

  6. #6
    Sencha User
    Join Date
    Nov 2008
    Posts
    12

    Thumbs up

    ok.
    i have updated my ext to 2.2.1 now and its works fine!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •