1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
    waqasaslammmeo is on a distinguished road

      0  

    Smile Answered: Show labels at the top of text fields

    Answered: Show labels at the top of text fields


    Hello !
    i hope all of you are in great state of health , i have a prob , i want to show my labels of my text fields at the top of them. as shown in attached image file , please help me in this .

    Best Regards
    Attached Images

  2. here you go!
    http://jsfiddle.net/serju/P4aX9/1/
    PHP Code:
    Ext.create('Ext.container.Container', {
        
    layout: {
            
    type'hbox'
        
    },
        
    width600,
        
    renderToExt.getBody(),
        
    defaults: {        
            
    labelWidth80,
            
    labelAlign 'top',
            
    xtype 'textfield'
        
    },
        
    items: [{                
            
    fieldLabel'Id'
        
    },{
            
    fieldLabel'Name'
        
    },{    
            
    fieldLabel 'City'       
        
    }]
    }); 

  3. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    You should config your textfield with labelAlign set to 'top'.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
    waqasaslammmeo is on a distinguished road

      0  

    Default Thanks for the reply

    Thanks for the reply


    i am newbie so i have no idea , i need help of people like you at every single step. can you please show me some coding.

    Best Regards

  5. #4
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    204
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    here you go!
    http://jsfiddle.net/serju/P4aX9/1/
    PHP Code:
    Ext.create('Ext.container.Container', {
        
    layout: {
            
    type'hbox'
        
    },
        
    width600,
        
    renderToExt.getBody(),
        
    defaults: {        
            
    labelWidth80,
            
    labelAlign 'top',
            
    xtype 'textfield'
        
    },
        
    items: [{                
            
    fieldLabel'Id'
        
    },{
            
    fieldLabel'Name'
        
    },{    
            
    fieldLabel 'City'       
        
    }]
    }); 

  6. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
    waqasaslammmeo is on a distinguished road

      0  

    Default


    thanks for your interest sir , but i am not using php , i am using asp.net .can you please do something in asp.net .thanks again sir.

    Regards

  7. #6
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    204
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    that's pure EXTJS, Sir!
    that's all it is
    Just within PHP tags, for better formating..

  8. #7
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Answers
    21
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default



  9. #8
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
    waqasaslammmeo is on a distinguished road

      0  

    Default


    thanks for your valuable time and comments ,

    God Bless You

Thread Participants: 3

Tags for this Thread