Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7584573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:57:19+00:00 2026-05-30T18:57:19+00:00

Any idea why the docked items not displayed in the preview? Here is the

  • 0

Any idea why the docked items not displayed in the preview? Here is the code.

Ext.setup({
    onReady:function(){
        var top_toolbar= [{
            xtype:'toolbar',
            ui:'dark',
            dock:'top',
            title:'Login Form'
        }]
        var loginForm = new Ext.form.FormPanel({
            items:[{
                xtype:'fieldset',
                items:[{
                    xtype:'textfield',
                    label:'Username',
                    name:'u_name',
                    labelWidth:100
                },{
                    xtype:'passwordfield',
                    label:'Password',
                    name:'u_password',
                    labelWidth:100
                }]
            }]
        });
        var formPanel=new Ext.Panel({
            fullscreen:'true',
            layout:'fit',
            dockedItems:top_toolbar,
            items:[loginForm]
        });
    }
});

I am just trying to create a login page, with the textfields for username and password and need to include the toolbar docked on top which has the title ‘Login Form’. In the preview i get the textfields with label but it does not show the toolbar. am I doing anything wrong with the code?

Any help would be appreciated. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:57:20+00:00Added an answer on May 30, 2026 at 6:57 pm

    The dockedItems configuration has been deprecated in Sencha Touch 2. If you are using a version of the framework which does not include the compatibility layer, that configuration will not work.

    Instead, put all items, including docked items, inside the items array.

    Some other notes:

    • dock has been changed to docked
    • Ext.form.FormPanel has changed to Ext.form.Panel
    • You should use Ext.create() instead of the the new keyword. This means you can take advantage of Ext.Loader and dependency management. You can find our more information about it here: http://docs.sencha.com/touch/2-0/#!/guide/class_system

    And finally, here is how your code should look if you implement all these changes:

    Ext.setup({
        onReady:function(){
            var loginForm = Ext.create('Ext.form.Panel', {
                items: [
                    {
                        xtype: 'fieldset',
                        items: [
                            {
                                xtype: 'textfield',
                                label: 'Username',
                                name: 'u_name',
                                labelWidth: 100
                            },
                            {
                                xtype: 'passwordfield',
                                label: 'Password',
                                name: 'u_password',
                                labelWidth: 100
                            }
                        ]
                    }
                ]
            });
    
            var formPanel = Ext.create('Ext.Panel', {
                fullscreen:'true',
                layout:'fit',
                items: [
                    {
                        xtype: 'toolbar',
                        ui: 'dark',
                        docked: 'top',
                        title: 'Login Form'
                    },
                    loginForm
                ]
            });
        }
    });
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any idea what's wrong with my code? var pageLimit=30; $(document).ready(function() { for(var i =
Any idea why the following code will not compile? IEnumerable users; using (var ent
Any idea why the following mocking code does not work? org.hibernate.SessionFactory sessionFactory = Mockito.mock(SessionFactory.class);
Any idea why the following code doesn't print the amount of characters in the
Any idea how to return multiple variables from a function in ActionScript 3? Anything
Any idea why my web page content doesn't resize with the window? I'm not
Any idea why this code gives me a memory leak? As you can see,
Any idea whats wrong with my code? when i execute glCompressedTexImage2D() the program just
Any idea what approach I would follow to get the items of a databound
Any idea what's the code for getting text with every letter in bubble like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.