PDA

View Full Version : [CLOSED] Load Mask & Confrimation



canusr1
Sep 17, 2013, 5:37 AM
Hello there,

I wanna show mask as "Saving Data..." after choose 'Yes' from confirmation alert window.

If I apply EventMask in DirectEvent, the masking is loading even I didn't choose in confirmation messsage box.



<ext:Button ID="btnFinalize" runat="server" Text="Finalize" Icon="PluginEdit" Hidden="true" Before="return #{sTransaction}.isDirty();">
<DirectEvents>
<Click OnEvent="FinaliseClick">
<Confirmation ConfirmRequest="true" Message="Are you sure to Finalize transactions for selected period?" Title="Commission">
</Confirmation>
<ExtraParams>
<ext:Parameter Name="data" Value="#{sTransaction}.getChangedData()" Mode="Raw" Encode="true" />
</ExtraParams>
</Click> </DirectEvents>
<Listeners>
<Click Handler="#{gvTransactionList}.editingPlugin.completeEdit();" />
</Listeners>
</ext:Button>


Thanks in advance...~~~

Daniil
Sep 17, 2013, 6:20 AM
Hi @canusr1,

A mask doesn't appear if click "No" in the test case below. So, please provide your full test case.

Example

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

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

<script runat="server">
protected void TestDirectEventHandler(object sender, DirectEventArgs e)
{
X.Msg.Alert("DirectEvent", "Hello from Server!").Show();
}
</script>

<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:Button runat="server" Text="Click Me">
<DirectEvents>
<Click OnEvent="TestDirectEventHandler">
<Confirmation
ConfirmRequest="true"
Message="Are you sure to Finalize transactions for selected period?"
Title="Commission" />

<EventMask ShowMask="true" />
</Click>
</DirectEvents>
</ext:Button>
</form>
</body>
</html>