|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Hi all.
I have a fieldset with a column layout. In the fieldset i have 2 columns, with each a formpanel, which again contains the form items. In column 1 i use form items like combo's and textfields which uses fieldlabels, this all works well. However, in column 2 i need form items like combo's WITHOUT a fieldlabel. I tried a displayField and a textarea, and although they are rendered at the correct height, there is a 'gap' (space of around 100-200px i guess) at the left of the items. What i want is this space to be removed, so the items (the displayfield and textarea) go further to the left. Code: xtype: 'fieldset',
layout: 'column',
title: 'Uren',
items: [
{
xtype: 'panel',
layout: 'form',
border: true,
width: 290,
items: [
{
xtype: 'combo',
store: new Ext.data.ArrayStore(
{
fields: ['bedrijfsnaam'],
data: [['Microsoft'],['KPN'],['Vodafone'],['Eneco']]
}),
value: 'Microsoft',
valueField: 'bedrijfsnaam',
displayField: 'bedrijfsnaam',
mode: 'local',
triggerAction: 'all',
fieldLabel: 'Bedrijf',
width: 150
},
{
xtype: 'combo',
store: new Ext.data.ArrayStore(
{
fields: ['urensoort'],
data: [['Declarabel'],['Verlof'],['Bijzonder'],['Ziek'],['Tandarts'],['Huisarts']]
}),
value: 'Declarabel',
valueField: 'urensoort',
displayField: 'urensoort',
mode: 'local',
triggerAction: 'all',
fieldLabel: 'Urensoort',
width: 150
},
{
xtype: 'textfield',
fieldLabel: 'Van',
width: 150
},
{
xtype: 'textfield',
fieldLabel: 'Tot',
width: 150
}]
},
{
xtype: 'panel',
layout: 'form',
border: true,
items: [
{
xtype: 'displayfield',
value: 'Omschrijving:'
},
{
xtype: 'textarea',
width: 200
}]
}]
|
|
#2
|
|||
|
|||
|
Hi!
You might use the property hideLabel:true, Bye! |
|
#3
|
||||
|
||||
|
hi,
attu is right, but also use hidelabel: true, and they will both be nicely placed aside the other formObjects |
|
#4
|
|||
|
|||
|
wow, how could i miss that!
Thank you very much! |
|
#5
|
||||
|
||||
|
Or simple do not use
layout: 'form', Also, do not use Panels as the columns. Use xtype: 'container' (And apply a class to get the border that you want)
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
![]() |
| Thread Tools | |
|
|