[Closed] How to control mask show while image command in gridpanel is triggered
Before Ext.net kit was uploaded to 2.1, below javascript can be executed normally.
Code:
function fnMyDeviceDistribute(cmd, rec) {
if (cmd == "Picture") {
gridMyDeviceSearch.body.mask("Operating...", "x-mask-loading");
App.direct.ShowPhotos(rec, { success: function (result) { gridMyDeviceSearch.body.unmask(); } });
}
else if (cmd == "Transfer") {
...
}
}
But it does not work within Ext.net 2.1 kit.
How it can be implemented in Ext.net 2.1?
Code:
<ext:GridPanel runat="server" ID="gridMyDeviceSearch" StoreID="storeMyDeviceSearch">
<ColumnModel runat="server">
<Columns>
<ext:ImageCommandColumn runat="server" Width="120" Text="Action">
<Commands>
<ext:ImageCommand CommandName="Transfer">
<ToolTip Text="Transfer to Somebody" />
</ext:ImageCommand>
<ext:ImageCommand CommandName="Picture" Icon="Image" Text=" ">
<ToolTip Text="Photos" />
</ext:ImageCommand>
</Commands>
<Listeners>
<Command Handler="fnMyDeviceDistribute(command, record.data.IMEI);" />
</Listeners>
<PrepareCommand Fn="prepareMyDeviceCommand" />
</ext:ImageCommandColumn>
<ext:Column runat="server" DataIndex="Type" Text="Type" Width="60"/>
</Columns>
</ColumnModel>
</ext:GridPanel>