How to set Text property in GridPanel ImageCommand

  1. #1

    How to set Text property in GridPanel ImageCommand

    I would like to be able to set Text property according to the Store value.
    Here is the code:

    <ext:XScript ID="XScript1" runat="server">
    <script type="text/javascript">
    function linkRendererObrigados(value, meta, record) {
    //
    }
    </script>
    </ext:XScript>

    <ColumnModel>
    <Columns>
    <ext:Column Header="Obrigados" Width="60" DataIndex="QuantidadeObrigados" Align="Right">
    <Renderer Fn="linkRendererObrigados" />
    <Commands>
    <ext:ImageCommand CommandName="Edit" Icon="Application" Text="Detalhes">
    </ext:ImageCommand>
    </Commands>
    </ext:Column>


    Thanks!!
  2. #2
    Hello!

    Please, wrap your code in CODE tags. Read #3 here: http://forums.ext.net/showthread.php?10205

    About your question: Take a look at this example: https://examples2.ext.net/#/GridPane...pare_Commands/

Similar Threads

  1. Replies: 5
    Last Post: Jul 29, 2016, 7:54 AM
  2. Replies: 1
    Last Post: Dec 08, 2010, 11:38 AM
  3. [CLOSED] [1.0] gridpanel image and imagecommand
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 02, 2010, 1:37 PM
  4. [CLOSED] MultiSelect and text items with comma in Text property
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 15, 2009, 2:30 PM
  5. [CLOSED] Text property not set, when in window??
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 16, 2008, 12:15 PM

Posting Permissions