View Full Version : fieldLabel does not display in layout:column

11 Feb 2010, 1:50 AM
var srodek_ogolne = new Ext.FormPanel ({
labelWidth: '75',
url: 'warstwy/logika/dodaj_srodki.php',
frame: true,
title: 'Informacje podstawowe',
//bodyStyle:'padding:5px 5px 0',
//collapsed: true,
defaultType: 'textfield',
items: [{
//defaults: {width: 210},
defaultType: 'textfield',
xtype: 'fieldset',
collapsible: true,
//fieldLabel: 'Nazwa',
items: [{
label: 'Nazwa',
fieldLabel: 'Nazwa',
name: 'srt_nazwa',
emptyText: 'nazwa',
//margins: {left: 20, top: 20, right: 20, bottom: 20},
columnWidth: .100,
fieldLabel: 'Kod',
name: 'srt_kod',
emptyText: 'kod',
columnWidth: .100,

http://images40.fotosik.pl/255/9eee4a201f529d37m.png (http://www.fotosik.pl/showFullSize.php?id=9eee4a201f529d37)

As you see there is nospace between "Nazwa" and "Kod" and the labels are not displaying. :-?

How can i solve this?

11 Feb 2010, 2:36 AM
Note: this config is only used when this Component is rendered by a Container which has been configured to use the FormLayout layout manager (e.g. Ext.form.FormPanel or specifying layout:'form').

Or you can use the FieldLabeler plugin which is included in your examples/ux directory.

11 Feb 2010, 3:12 AM
Hello Animal
So how can display name of my columns in layout: 'column' mode?
Should i add new container and then setup layout:column?

Is there any chance to auto adding label support while in column mode in new version ExtJs?