PDA

View Full Version : Show labels at the top of text fields



waqasaslammmeo
2 Mar 2012, 10:25 PM
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

vietits
2 Mar 2012, 11:08 PM
You should config your textfield with labelAlign set to 'top'.

waqasaslammmeo
2 Mar 2012, 11:28 PM
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

chramer
2 Mar 2012, 11:48 PM
here you go!
http://jsfiddle.net/serju/P4aX9/1/


Ext.create('Ext.container.Container', {
layout: {
type: 'hbox'
},
width: 600,
renderTo: Ext.getBody(),
defaults: {
labelWidth: 80,
labelAlign : 'top',
xtype : 'textfield'
},
items: [{
fieldLabel: 'Id'
},{
fieldLabel: 'Name'
},{
fieldLabel : 'City'
}]
});

waqasaslammmeo
3 Mar 2012, 12:13 AM
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

chramer
3 Mar 2012, 1:55 AM
that's pure EXTJS, Sir! :D
that's all it is
Just within PHP tags, for better formating..

vadimv
3 Mar 2012, 2:08 AM
:D

waqasaslammmeo
5 Mar 2012, 12:05 AM
thanks for your valuable time and comments ,

God Bless You