[CLOSED] [1.0] ButtonGroup tools

  1. #1

    [CLOSED] [1.0] ButtonGroup tools

    Is it possible for the ButtonGroup to have the ability to add Tools to it? Please see the attached image for an example of what I mean.

    I'd like to be able to add an "Expand" icon to a ButtonGroup, associate a Tooltip with it, as illustrated in the attached image, and allow it to be clickable.

    Any thoughts on how this could be achieved?

    Many thanks,

    Dan
  2. #2

    RE: [CLOSED] [1.0] ButtonGroup tools

    Hi,

    Try the following sample
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server">
            </ext:ResourceManager>
            
            <ext:ButtonGroup ID="Group1" runat="server" Title="Clipboard">
                <Items>
                    <ext:TableLayout runat="server" Columns="2">
                        <Cells>
                            <ext:Cell>
                                <ext:Button runat="server" Text="Button" Icon="Add" Scale="Large">
                                </ext:Button>
                            </ext:Cell>
                            <ext:Cell>
                                <ext:Button runat="server" Text="Button" Icon="Add" Scale="Large">
                                </ext:Button>
                            </ext:Cell>
                        </Cells>
                    </ext:TableLayout>
                </Items>
                <Plugins>
                    <ext:BottomTitle runat="server" />
                </Plugins>
                <Listeners>
                    <AfterRender Delay="10" Handler="var td = &#100;ocument.createElement('td'); this.fbar.el.child('.x-toolbar-right-row').dom.appendChild(td); #{Button1}.render(td);" />
                </Listeners>
            </ext:ButtonGroup>
            
            <ext:Button ID="Button1" runat="server" Icon="Add" Flat="true" AutoRender="false" />
        </form>
    </body>
    </html>
  3. #3

    RE: [CLOSED] [1.0] ButtonGroup tools

    This would make a good plugin.

    Geoffrey McGill
    Founder
  4. #4

    RE: [CLOSED] [1.0] ButtonGroup tools

    Thanks - just what I needed!

    The button was slightly big, so it was forcing the height of the ButtonGroup to increase, but I added the following Cls to the Button:

    Cls="groupButtonTool"
    And added the following style:

    .groupButtonTool .x-btn-text
    {
        height: 12px !important;
        width: 12px !important;
    }
    And specified my custom IconCls:

    IconCls="iconButtonGroupExpand"
    CSS:

    .iconButtonGroupExpand
    {
        background-image: url("Images/IconButtonGroupExpand.png") !important;
    }
    I've attached the "IconButtonGroupExpand.png" image to this post, if anyone wants to replicate the icon that's used in Word/Excel etc.

    Cheers

    Dan

Similar Threads

  1. [CLOSED] Dynamic ButtonGroup
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 07, 2012, 9:04 AM
  2. [CLOSED] Buttons alignment on ButtonGroup
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 01, 2012, 8:53 AM
  3. [CLOSED] Content vs. Item on ButtonGroup
    By tiramisu in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 28, 2010, 10:13 AM
  4. [CLOSED] [1.0] ButtonGroup BottomTitle plugin in IE8
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 19, 2010, 4:29 AM
  5. [CLOSED] ButtonGroup Bug
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 13, 2009, 2:42 AM

Posting Permissions