ImageCommand Icon

  1. #1

    ImageCommand Icon

    I want to render ImageCommand.Icon which depends on some parameters. How should I do it?

    <ColumnModel runat="server">
            <Columns>
                <ext:Column Header="Description" DataIndex="Description">
                    <Commands>
                        <ext:ImageCommand CommandName="MyCommand" Icon="??????" />
                    </Commands>
                </ext:Column>
            </Columns>
    </ColumnModel>
  2. #2
    You have to use PrepareCommand and set required iconCls via javascript
    See https://examples1.ext.net/#/GridPane...pare_Commands/
  3. #3
    Is it possible to align ImageCommand not to the left or to the right of the row, but to the end of the row data?
    I mean something like this

    -----------------------------------------------------------------------------------------------------------------
    Data1Data1Data1 cmd1 cmd2...................... | Data12Data12Data12 cmd2 cmd2...................... |
    -----------------------------------------------------------------------------------------------------------------
    Data2Data2Data2 cmd1 cmd2...................... | Data22Data22Data22 cmd2 cmd2...................... |
    -----------------------------------------------------------------------------------------------------------------
    Data3Data3Data3 cmd1 cmd2...................... | Data33Data33Data3 cmd2 cmd2...................... |
    -----------------------------------------------------------------------------------------------------------------


    where Data1Data1Data1, Data2Data2Data2, Data3Data3Data3 - the row data, cmd1 cmd2 - commands, ...................... - whitespaces.

Similar Threads

  1. Replies: 5
    Last Post: Jul 29, 2016, 7:54 AM
  2. Set Icon ImageCommand
    By Maia in forum 1.x Help
    Replies: 1
    Last Post: Sep 06, 2010, 2:03 PM
  3. ImageCommand Icon not showing up
    By RPIRES in forum 1.x Help
    Replies: 5
    Last Post: Jun 21, 2010, 5:28 PM
  4. [CLOSED] [1.0] ImageCommand Icon
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 01, 2010, 6:36 PM
  5. Imagecommand IE6
    By dayanat in forum 1.x Help
    Replies: 3
    Last Post: Jun 25, 2009, 9:51 AM

Tags for this Thread

Posting Permissions