Feb 03, 2015, 6:29 AM
[CLOSED] Controls not aligned properly
Hi,
When we navigate using TAB press, the width of TextField is adjusted. If we not provided width(by default width) TextField is not adjusted.
Please review the code below:
When we navigate using TAB press, the width of TextField is adjusted. If we not provided width(by default width) TextField is not adjusted.
Please review the code below:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test page</title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager" runat="server"></ext:ResourceManager>
<ext:Panel ID="Panel1" runat="server">
<Items>
<ext:FormPanel ID="pnlSystemSetUp" runat="server" BodyPadding="5" Border="false">
<FieldDefaults LabelAlign="Left" MsgTarget="Side" />
<Items>
<ext:FieldSet ID="pnlControls" runat="server" MarginSpec="0 0 0 10" ButtonAlign="Right" Border="false">
<Items>
<ext:TextField ID="txtName" Name="Name" runat="server" AllowBlank="false" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtName1" Name="Name1" runat="server" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtName2" Name="Name2" runat="server" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtName3" Name="Name3" runat="server" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtAddress1" Name="AddressLine1" runat="server" MaxLength="200" MsgTarget="Side"></ext:TextField>
</Items>
</ext:FieldSet>
</Items>
<Buttons>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Panel>
</form>
</body>
</html>
Guide us!!!
Last edited by Daniil; Feb 04, 2015 at 5:21 PM.
Reason: [CLOSED]