View Full Version : [CLOSED] Mask for MenuItem click on listener (not DirectEvent)

May 02, 2013, 2:21 PM
Can I render a mask during a menuItem click that is configured to call a listener function? The action is taking a little longer then I want.

It is easy for DirectEvents.

<ext:MenuItem runat="server" Text="Client" Icon="Computer">
<Click Fn="filloutDefaults" />
<ext:MenuItem runat="server" Text="Server" Icon="Server">
<Click onEvent="FilloutDefaults" >
<EventMask Msg="Assigning values ..." ShowMask="true" />

May 02, 2013, 2:34 PM
Sorry about that, I found the answer. Didn't search long enough.

Ext.net.Mask.show({ el: App.RequestData.body, msg: "Assigning values ..."});

... Assign values ...


I changed my hide so that a mask showed for atleast a little bit.

Ext.defer(Ext.net.Mask.hide, 500);

Please close the thread.