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