Sep 21, 2014, 7:50 AM
Loader is not working with UserControl
Dears,
I will try to explain my scenario in simple way to get best result from the post.
I'm using UserControls in my main page called (Default.aspx), and is defined as follows:
What I want to achieve is: display masking message with executing the direct method, and this should mask the whole window.
This code is NOT working at all, it is placed inside UserControl FormPanel:
How to achive what I want?
Regards,
Ali
I will try to explain my scenario in simple way to get best result from the post.
I'm using UserControls in my main page called (Default.aspx), and is defined as follows:
....
<%@ Register src="~/Apps/UC/SME_NEW_VISITOR_UC.ascx" tagname="visitors" tagprefix="uc1" %>
...
..
.
<ext:Panel runat="server" Header="false" Border="false" Layout="FitLayout">
<Content>
<uc1:visitors ID="ucVisitors" runat="server" Title="New Visitor">
</uc1:visitors>
</Content>
</ext:Panel>
In UserControl, I define my panels as follows: <window>
<ext:FormPanel>1</ext:FormPane>
<ext:FormPanel>2</ext:FormPane>
<ext:FormPanel>3</ext:FormPane>
...
..
.
</window>
Inside each FormPanel many controls, with Button to call a Direct Method to do some staff.What I want to achieve is: display masking message with executing the direct method, and this should mask the whole window.
This code is NOT working at all, it is placed inside UserControl FormPanel:
<ext:Button ID="BtnSendEnMail" runat="server" Icon="Mail" Text="Send English Mail" Handler="#{DirectMethods}.SendVisitorEmail('En')" >
<Loader
runat="server"
AutoLoad="false"
RemoveAll="false"
DirectMethod="#{DirectMethods}.SendVisitorEmail"
Mode="Component">
<LoadMask ShowMask="true" />
<Params>
<ext:Parameter Name="name" Value="En" Mode="Raw" />
</Params>
</Loader>
</ext:Button>
What I'm doing wrong?How to achive what I want?
Regards,
Ali