Sep 04, 2012, 8:37 AM
[CLOSED] FormPanel Waiting Mask doesn't hide well
Hi,
I reproduced a test case of a waiting mask error that works right in rev. 4283 of v2.1 and with my DLL updated to rev. 4306 doesn't works right. It could be broken in other revision.
Steps to reproduce:
MY CONTROLLER
I reproduced a test case of a waiting mask error that works right in rev. 4283 of v2.1 and with my DLL updated to rev. 4306 doesn't works right. It could be broken in other revision.
Steps to reproduce:
- Click Button to start test, it expands a panel with a formpanel
- Fill field in this formpanel
- Click in Save Button
- The waiting mask is unhidden in rev 4306 (KO)
MY CONTROLLER
public ActionResult Save()
{
Thread.Sleep(2000);
return new FormPanelResult();
}
ASPX CODE<html>
<head runat="server">
<title>FormPanel Validation - Ext.NET Examples</title>
<style type="text/css">
.icon-exclamation
{
padding-left: 25px !important;
background: url(/icons/exclamation-png/ext.axd) no-repeat 3px 0px !important;
}
.icon-accept
{
padding-left: 25px !important;
background: url(/icons/accept-png/ext.axd) no-repeat 3px 0px !important;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:Button runat="server" Text="Start Test">
<Listeners>
<Click Handler="if (ExpandablePanel.disabled)
ExpandablePanel.setDisabled(false);
ExpandablePanel.expand(true);" />
</Listeners>
</ext:Button>
<ext:TabPanel ID="tabPanelTabs" runat="server" Border="false" Height="500">
<Items>
<ext:Panel ID="myTab" runat="server" Layout="FitLayout" Title="My Tab" Border="false">
<Items>
<ext:Panel runat="server" Border="false" Layout="BorderLayout">
<Items>
<ext:Panel ID="ExpandablePanel" runat="server" Collapsed="true" Height="400" Border="false"
Region="South" Title="Expandable Panel" Disabled="true" ButtonAlign="Center"
Layout="FitLayout">
<Content>
<ext:FormPanel ID="FormPanel1" runat="server" Title="FormPanel Validation (all fields required)"
BodyPadding="5" ButtonAlign="Right" Layout="Column" Url="/MyArea/MyController/Save">
<Items>
<ext:Panel runat="server" Border="false" Header="false" ColumnWidth=".5" Layout="Form"
LabelAlign="Top">
<Defaults>
<ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:TextField runat="server" FieldLabel="First Name" AnchorHorizontal="92%" />
<ext:TextField runat="server" FieldLabel="Company" AnchorHorizontal="92%" />
</Items>
</ext:Panel>
<ext:Panel runat="server" Border="false" Layout="Form" ColumnWidth=".5" LabelAlign="Top">
<Defaults>
<ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:TextField runat="server" FieldLabel="Last Name" AnchorHorizontal="92%" />
<ext:TextField runat="server" FieldLabel="Email" Vtype="email" AnchorHorizontal="92%" />
</Items>
</ext:Panel>
</Items>
<BottomBar>
<ext:StatusBar runat="server" />
</BottomBar>
<Listeners>
<ValidityChange Handler="this.dockedItems.get(1).setStatus({
text : valid ? 'Form is valid' : 'Form is invalid',
iconCls: valid ? 'icon-accept' : 'icon-exclamation'
});
#{Button1}.setDisabled(!valid);" />
</Listeners>
</ext:FormPanel>
</Content>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Save" Disabled="true" FormBind="true">
<Listeners>
<Click Handler="if (#{FormPanel1}.getForm().isValid()) {
#{FormPanel1}.form.submit({ waitMsg: 'My waiting message',
waitTitle: 'My Custom Title'
});
}else{
Ext.Msg.show({icon: Ext.MessageBox.ERROR, msg: 'FormPanel is incorrect', buttons:Ext.Msg.OK});}" />
</Listeners>
</ext:Button>
<ext:Button runat="server" Text="Cancel" />
</Buttons>
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:TabPanel>
</form>
</body>
</html>
Last edited by Daniil; Sep 21, 2012 at 10:58 AM.
Reason: [CLOSED]