[CLOSED] Center ImageCommand in grid cell

  1. #1

    [CLOSED] Center ImageCommand in grid cell

    Support,
    how can i center a icon in a grid cell? In the example below, the Align property only works for the header. i want the ImageCommand Icon to be centered. How to do this properly?

                       <ColumnModel runat="server">
                            <Columns>
                                <ext:Column runat="server" Text="Test 1" Flex="1" Align="Center">
                                    <Commands>
                                        <ext:ImageCommand CommandName="Add1" Icon="Add">
                                            <ToolTip Text="Add" />
                                        </ext:ImageCommand>
                                    </Commands>
                                    <Listeners>
                                        <Command Handler="alert('test');" />
                                    </Listeners>
                                </ext:Column>
    thanks,
    /Z
    Last edited by fabricio.murta; Aug 18, 2017 at 10:04 PM.
  2. #2
    Hello @Z! Maybe the ImageCommandColumn does what you want, with some modification. Check this out:

    - GridPanel ImageCommandColumn Centering Image

    Hope this helps! As for a simpler approach, I am afraid the component does not allow centering the image inside it without custom CSS rules.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thxs
    That works.
    It must be an ImageCommandColumn. Regular Column won't work
    /Z
  4. #4
    Hello @Z!

    Thanks for the feedback, we really do appreciate it! And glad the directions above helped you out!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 2
    Last Post: Feb 23, 2015, 7:40 AM
  2. [CLOSED] Drag Cell from Grid 1 and Drop to Grid 2 Cell
    By redi in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 18, 2013, 7:20 AM
  3. [CLOSED] Center GridPanel cell column content
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 04, 2012, 10:24 AM
  4. [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
  5. Center Align Image in Grid cell
    By bsnezw in forum 1.x Help
    Replies: 0
    Last Post: Aug 25, 2009, 12:25 PM

Posting Permissions