Nov 15, 2011, 10:18 AM
[CLOSED] Form Layout problem
Hi
I have a form with two columns (columnlayout), each having some fields. Is it possible witout specifying the width of each field to align them, something like
https://examples1.ext.net/#/Getting_...nent_Overview/ in Form Fields, where it's accomplished with "Defaultanchor".
Here is my example:
I have a form with two columns (columnlayout), each having some fields. Is it possible witout specifying the width of each field to align them, something like
https://examples1.ext.net/#/Getting_...nent_Overview/ in Form Fields, where it's accomplished with "Defaultanchor".
Here is my example:
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1" runat="server">
<title>Test</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" IDMode="Explicit" RemoveViewState="true"
InitScriptMode="Inline" />
<ext:Window ID="MainWindow" runat="server" Modal="true" Height="350" Width="650">
<Items>
<ext:FormPanel ID="Form_NewTask" Width="630" Height="350" Frame="true">
<Items>
<ext:ColumnLayout>
<Columns>
<ext:LayoutColumn ColumnWidth="0.75">
<ext:FieldSet Title="Fieldset 1">
<Items>
<ext:DateField runat="server" FieldLabel="date">
</ext:DateField>
<ext:TextArea runat="server" FieldLabel="textarea">
</ext:TextArea>
<ext:DateField runat="server" FieldLabel="date field">
</ext:DateField>
<ext:NumberField runat="server" FieldLabel="numberfield" AllowNegative="false" AllowBlank="false">
</ext:NumberField>
</Items>
</ext:FieldSet>
</ext:LayoutColumn>
<ext:LayoutColumn>
<ext:Panel Title="Details" FormGroup="true" BodyBorder="true" Width="300">
<Items>
<ext:Checkbox runat="server" FieldLabel="activate" Checked="false">
</ext:Checkbox>
<ext:FieldSet runat="server" Title="Field set 2" Disabled="true">
<Items>
<ext:TextArea runat="server" FieldLabel="text area">
</ext:TextArea>
<ext:NumberField runat="server" FieldLabel="numberfield 2" AllowNegative="false">
</ext:NumberField>
<ext:DateField runat="server" FieldLabel="date field" Format="dd.MM.yyyy">
</ext:DateField>
<ext:TextField runat="server" FieldLabel="textfield ">
</ext:TextField>
</Items>
</ext:FieldSet>
</Items>
</ext:Panel>
</ext:LayoutColumn>
</Columns>
</ext:ColumnLayout>
</Items>
</ext:FormPanel>
</Items>
</ext:Window>
</form>
</body>
</html>
Last edited by Daniil; Nov 15, 2011 at 1:11 PM.
Reason: [CLOSED]