Jun 26, 2018, 3:22 AM
[CLOSED] Inconsistent error handling (chrome/ie)
Support,
Please review complete standalone code sample below. First run it in Edge. When it opens, just tab through it. notice the Allowblank=true so you get an error for every cell you tab out of. the cell shrinks to make space for the exclamation icon.
Now do it on Chrome. the cell does NOT properly shrink.
Please note this was tested against EXT 4.2.2.
thanks,
/Z
Please review complete standalone code sample below. First run it in Edge. When it opens, just tab through it. notice the Allowblank=true so you get an error for every cell you tab out of. the cell shrinks to make space for the exclamation icon.
Now do it on Chrome. the cell does NOT properly shrink.
Please note this was tested against EXT 4.2.2.
thanks,
/Z
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<body>
<form runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Neptune">
</ext:ResourceManager>
<ext:Viewport ID="Viewport1" runat="server" Layout="VBoxLayout">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Center" Pack="Start" />
</LayoutConfig>
<Items>
<ext:Container runat="server" ID="dfgdfg">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Center" Pack="Center" />
</LayoutConfig>
<Items>
<ext:Panel Layout="CardLayout" runat="server" AutoWidth="true" ActiveIndex="0" MarginSpec="10 10 10 10" ID="wwww" Width="900">
<Items>
<ext:FormPanel
ID="Form1"
runat="server"
Title="Information"
BodyPadding="5"
ButtonAlign="Right"
Layout="ColumnLayout">
<Items>
<ext:Container
runat="server" Border="false" Header="false" Layout="Form" ColumnWidth=".5" LabelAlign="Top">
<Defaults>
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:FieldSet runat="server" Title="Details">
<Items>
<ext:TextField runat="server" AllowBlank="false" FieldLabel="First Name" Vtype="alpha" AnchorHorizontal="92%" />
<ext:TextField runat="server" FieldLabel="Middle Initial" Vtype="alpha" AllowBlank="true" AnchorHorizontal="92%" MaxLengthText="1" />
<ext:TextField runat="server" FieldLabel="Last Name" Vtype="alpha" AllowBlank="false" AnchorHorizontal="92%" />
</Items>
</ext:FieldSet>
</Items>
</ext:Container>
<ext:Container runat="server" Border="false" Header="false" Layout="Form" ColumnWidth=".5" LabelAlign="Top">
<Defaults>
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:FieldSet runat="server" Title="Address Details">
<Items>
<ext:TextField runat="server" AllowBlank="false" FieldLabel="Address1" AnchorHorizontal="92%" />
<ext:TextField runat="server" AllowBlank="true" FieldLabel="Address2" AnchorHorizontal="92%" />
<ext:TextField runat="server" FieldLabel="City" AllowBlank="false" AnchorHorizontal="92%" />
<ext:TextField runat="server" FieldLabel="State" AllowBlank="false" AnchorHorizontal="92%" />
<ext:TextField runat="server" FieldLabel="Zip" AllowBlank="false" AnchorHorizontal="92%" />
</Items>
</ext:FieldSet>
</Items>
</ext:Container>
</Items>
<BottomBar>
<ext:StatusBar ID="sbar" runat="server" />
</BottomBar>
</ext:FormPanel>
</Items>
</ext:Panel>
</Items>
</ext:Container>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Last edited by fabricio.murta; Jul 03, 2018 at 4:50 PM.