PDA

View Full Version : Anchors inside FormLayout



hbbazan
Jan 14, 2010, 8:04 AM
Hello I have a FormLayout with many Anchors, but i dont want to put the components one upon the other, i want to put in the side of other. How can i do this?? Sorry about my English. Thanks.



ext:FormLayout ID="FormLayout2" runat="server">
<ext:Anchor>
<ext:ComboBox ID="cboUnidades" runat="server" Cls="cbo200" ReadOnly="true" FieldLabel="Unidades">
<Triggers>
<ext:FieldTrigger HideTrigger="true" />
</Triggers>
<Listeners>
<Select Handler="cancelarBuscaSemUnidade()" />
</Listeners>
<SelectedItem Value="todas" />
</ext:ComboBox>
</ext:Anchor>
<ext:Anchor>
<ext:ComboBox ID="cboBusca" runat="server" Cls="cbo200" FieldLabel="Buscar por" ReadOnly="true">
<Triggers>
<ext:FieldTrigger HideTrigger="true" />
</Triggers>
<Items>
<ext:ListItem Text="[Todos]" Value="todos" />
<ext:ListItem Text="Nome" Value="nome" />
<ext:ListItem Text="Tipo de curso" Value="tipoCurso" />
</Items>
<Listeners>
<Select Handler="troca_cboBusca()"></Select>
</Listeners>
<SelectedItem Value="todos" />
</ext:ComboBox>
</ext:Anchor>
<ext:Anchor>
<ext:ComboBox ID="cboTipoCurso" StoreID="strCboTipoCurso" runat="server" Cls="cbo200"
FieldLabel="Tipo do curso" ReadOnly="true" Disabled="true" DisplayField="nome"
ValueField="id">
<Triggers>
<ext:FieldTrigger HideTrigger="true" />
</Triggers>
</ext:ComboBox>
</ext:Anchor>
<ext:Anchor>
<ext:TextField ID="txtBusca" runat="server" Disabled="true" Cls="txt200" FieldLabel="Busca">
</ext:TextField>
</ext:Anchor>
</ext:FormLayout>

Maia
Jan 14, 2010, 8:51 AM
Hi!

See http://examples1.ext.net/#/Form/MultiField/Overview/

Maia
Coolite 0.8.1

hbbazan
Jan 14, 2010, 9:25 AM
Thanks Maia, but if i need to put more than one Field Label,
eg:

phone ________________ cel ___________________


i wanto to divide my form, because if i didnt ysing anchors, the componentes would be inline not uppon.

Vladimir
Jan 14, 2010, 10:15 AM
Hi,

See http://examples1.ext.net/#/Form/FormPanel/Validation/ (http://examples1.ext.net/#/Form/FormPanel/Validation/%20)

hbbazan
Jan 15, 2010, 8:40 AM
Thanks buddies
=)