Aug 07, 2013, 8:42 AM
[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.
How it can be implemented in Ext.net 2.1?
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?
<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>
Last edited by kfc427; Aug 14, 2013 at 11:57 AM.
Reason: Close this thread