Coolite:浅谈ShowMask的使用
1.直接在button按钮中添加
<ext:Button ID="Button1" runat="server" Text="保存" Icon="Disk">
<DirectEvents>
<Click
OnEvent="SampleFormPanelSave"
<EventMask
ShowMask="true"
Msg="保存中..."
MinDelay="500"
/>
</Click>
</DirectEvents>
</ext:Button>
注:无法在 <Listeners>中直接使用
那么如何在Listeners中使用呢?比如在GridPanel的Comman的中,如何ShowMask?
2.在DirectMethod中添加(<Listeners>中间接添加)
<Listeners>
<Command Handler="if(command=='Detail')
{Ext.net.DirectMethods.ShowDetails();}" />
</Listeners>
然后在CS下
[DirectMethod(ShowMask = true, Msg = "加载中...",Timeout = 5000)]
public void ShowDetails()
{
}
小弟初学coolite,如有错误,望高手们指出,O(∩_∩)O谢谢