PDA

View Full Version : Event Mask doesn't work!!



mono
Mar 09, 2009, 4:17 AM
Hi
i used from this code but eventmask don't work!!


<Buttons>
<ext:Button ID="btn" runat="server" Text="Change" Icon="Disk" CtCls="ltr">
<AjaxEvents>
<Click OnEvent="btn_Click">
<EventMask ShowMask="true" Msg="Saving..." MinDelay="1000" />
</Click>
</AjaxEvents>
</ext:Button>
</Buttons>

this button is in a Desktop window.

geoffrey.mcgill
Mar 09, 2009, 4:26 AM
Hi MoNo,

I tried your code in a Desktop example and it appears to work correctly for me. 


Can you explain greater detail what you mean my "eventmask don't work!!"?

mono
Mar 09, 2009, 4:33 AM
here is my Code in Desktop.aspx for changepasswordwindow


<ext:DesktopWindow
ID="ChagePasswordWindow"
runat="server"
Title="????? ???? ? ???"
Icon="User"
BodyStyle="padding:5px;"
Width="350"
Height="200"
PageX="100"
PageY="25">
<Body>
<ext:FormLayout ID="FormLayout1" runat="server" LabelWidth="120" Cls="rtl">
<ext:Anchor>
<ext:Label ID="lblPrePassword" Text="????? ????" runat="server" > </ext:Label>
</ext:Anchor>
<ext:Anchor>
<ext:TextField ID="txtPrePassword" runat="server" HideLabel="true" InputType="Password"></ext:TextField>
</ext:Anchor>
<ext:Anchor>
<ext:Label ID="lblNewPassword" Text="????? ????" runat="server" > </ext:Label>
</ext:Anchor>
<ext:Anchor >
<ext:TextField ID="txtNewPassword" runat="server" HideLabel="true" InputType="Password" />
</ext:Anchor>
<ext:Anchor>
<ext:Label ID="lblReNewPassword" Text="????? ????? ????" runat="server" > </ext:Label>
</ext:Anchor>
<ext:Anchor >
<ext:TextField ID="txtReNewPassword" runat="server" HideLabel="true" InputType="Password" />
</ext:Anchor>
</ext:FormLayout>
</Body>
<Buttons>
<ext:Button ID="btn" runat="server" Text="?????" Icon="Disk" CtCls="ltr">
<AjaxEvents>
<Click OnEvent="btn_Click">
<EventMask ShowMask="true" Msg="??? ???????..." MinDelay="1000" />
</Click>
</AjaxEvents>
</ext:Button>
</Buttons>
</ext:DesktopWindow>


and my Cs code in my Desktop.aspx.cs is


protected void btn_Click(object sender, AjaxEventArgs e)
{

}


but my event mask doesn't show!!! ;)
thank u for helping

mono
Mar 09, 2009, 4:52 AM
Hi
:(( all of my event masks don't work!! even logout button!!and they don't call their method in CS file.

geoffrey.mcgill
Mar 09, 2009, 5:41 AM
Hi MoNo,

I think there maybe something else wrong somewhere. I tested your DesktopWindow code and it appears to work correctly... at least with the current code base in SVN. Maybe there was a problem with v0.7 that's been fixed within the next release. 

gokcemutlu
Mar 09, 2009, 7:56 AM
Hi MoNO,

You're using Ajax Event so on the top of your method you should put:

[AjaxMethod]
protected void btn_Click(object sender, AjaxEventArgs e)
{
// Your code
}

Sharon
Mar 09, 2009, 9:36 AM
http://forums.ext.net/showthread.php?threadid=9366-16-1.aspx

mono
Mar 10, 2009, 8:07 AM
Hi
i used [ajaxmethod] on top of my code but it don't work,yet. :(