[CLOSED] Individual Image for Grid ImageCommand

  1. #1

    [CLOSED] Individual Image for Grid ImageCommand

    Hello,

    is it possible to define an individual image for an image command?
    Or do I have to use the delivered Icons?

    I am developing a touchscreen-based application but can only use Coolite 0.82 at the moment.
    For my grid I want to have a delete icon. But for a touchscreen the Coolite-Delete-Icon is too small.
    That´s why I want to have an individual larger icon.

    My code looks like this as the moment:


    //...
        <ext:Column ColumnID="ADD_ID" Header="" MenuDisabled="true" Width="80" DataIndex="ADD_ID" Align="Center">
            <Commands>
                <ext:ImageCommand CommandName="Delete" Icon="Delete" Text="">
                    <ToolTip Text="[Löschen]" />
                </ext:ImageCommand>
            </Commands>
        <Renderer Fn="renderDeleteButton" />
        </ext:Column>
    </ColumnModel>
    <Listeners>
        <Command Handler="#{StoreBasket}.remove(record);SetTotalCost();" />
    </Listeners>
    PS: Since 1.0 has larger Buttons... is there a plan to add larger icons in the near future?

    Regards,

    Martin
  2. #2

    RE: [CLOSED] Individual Image for Grid ImageCommand

    Hi,

    Try to use IconCls property of the ImageCommand
    IconCls="test32"
    and define css rule with your image
    .test32{
                background-image: url(Test32.png);
                width:32px !important;
                height:32px !important;
            }
  3. #3

    RE: [CLOSED] Individual Image for Grid ImageCommand

    This works fine. Thanks!

    I also was thinking about such a solution, but I thought I could not use it because I won´t have the mouseover effect (Arrow => Hand) . As I can see now this was wrong. The mouseover effect works fine because of the ImageCommand.
    So it´s all working now! :-)


    Bye,
    Martin

Similar Threads

  1. Replies: 1
    Last Post: May 16, 2012, 12:57 PM
  2. [CLOSED] CheckboxSelectionModel In Grid with ImageCommand
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 07, 2010, 11:04 PM
  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. Add Image to grid dynamically
    By ajaybabu.maddinani in forum 1.x Help
    Replies: 0
    Last Post: Jun 29, 2010, 10:48 AM
  5. [CLOSED] [1.0] Set individual divs of Colorpalette client-side
    By betamax in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 07, 2010, 5:36 PM

Posting Permissions