PDA

View Full Version : [CLOSED] spacing



otouri
Nov 16, 2012, 2:35 PM
I need some left padding and spacing between the controls to be added to the folliwng code:

I have tried all possible attributes but can't seem to get it to work:

<ext:Panel ID="Panel1" runat="server" Title="Create From Database" Padding="15" Height="200">
<Content>
<ext:Container ID="but1" runat="server" ColumnWidth=".33" LabelAlign="Top">
<Items>
<ext:Button ID="db" Icon="ServerDatabase" Text="Create From Database" Cls="formButton"
runat="server" />
</Items>
</ext:Container>
<ext:Container ID="Container1" runat="server" LabelAlign="Top" ColumnWidth=".33">
<Items>
<ext:MultiCombo ID="MultiCombo1" runat="server" SelectionMode="All" Width="260">
<Items>
<ext:ListItem Text="Select Fund(s):" Value="0" />
<ext:ListItem Text="F1" Value="1" />
<ext:ListItem Text="F2" Value="2" />
</Items>
<SelectedItems>
<ext:ListItem Value="0" />
</SelectedItems>
</ext:MultiCombo>
</Items>
</ext:Container>
<ext:Container ID="Container2" runat="server" ColumnWidth=".33" LabelAlign="Top">
<Items>
<ext:Button ID="Button1" Icon="Disk" Text="Save" Cls="formButton"
runat="server" />
</Items>
</ext:Container>
</Content>
<Buttons>
<ext:Button ID="btnPrev" runat="server" Text="Prev" Disabled="true" Icon="PreviousGreen"
Cls="formButton">
<DirectEvents>
<Click>
<ExtraParams>
<ext:Parameter Name="index" Value="#{WizardPanel}.items.indexOf(#{WizardPanel}.layout .activeItem)"
Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="btnNext" runat="server" Text="Next" Icon="NextGreen" Cls="formButton">
<DirectEvents>
<Click>
<ExtraParams>
<ext:Parameter Name="index" Value="#{WizardPanel}.items.indexOf(#{WizardPanel}.layout .activeItem)"
Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:Panel>

Daniil
Nov 16, 2012, 3:37 PM
Hi @otouri,

Please provide a mockup of the required layout. We will suggest a solution.

otouri
Nov 16, 2012, 3:59 PM
Attached is the original layout with the dropdowm being a multiselect dropdown. I also need to add some spacing between the controls and left table border

Daniil
Nov 16, 2012, 4:37 PM
Thank you.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:Panel
runat="server"
Title="Title"
BodyPadding="10"
Layout="VBoxLayout">
<Items>
<ext:Button runat="server" Text="Button 1" />
<ext:ComboBox runat="server" Margins="10 0 10 0" />
<ext:Button runat="server" Text="Button 2" />
</Items>
</ext:Panel>
</form>
</body>
</html>

otouri
Nov 16, 2012, 8:00 PM
It works great you may close the ticket.
Thank you for your help