How to control mask show while image command in gridpanel is triggered

  1. #1

    [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.

    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
  2. #2
    Wow, I just made a "junior" mistake.

    Just forgot to add "App" before components, just as

    App.gridpanel.body.mask();

    This thread will be closed.

Similar Threads

  1. Show/Hide Image Command from Code behind
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 2
    Last Post: Nov 26, 2013, 7:22 PM
  2. [CLOSED] GridPanel multi-select plus image command
    By jchau in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 06, 2013, 12:32 AM
  3. Replies: 1
    Last Post: May 16, 2012, 12:57 PM
  4. GridPanel + show mask via javascript
    By Birgit in forum 1.x Help
    Replies: 0
    Last Post: Sep 22, 2010, 8:47 AM
  5. Window with GridPanel don't show Mask
    By ajunior84 in forum 1.x Help
    Replies: 0
    Last Post: Nov 25, 2009, 10:09 AM

Posting Permissions