[CLOSED] Extra Icon in Panel Header

  1. #1

    [CLOSED] Extra Icon in Panel Header

    I need to show an Star Icon on Header Panel... to right position.
    The "star icon" must to be cliccable.



    Can you help me?

    Tnx!
    Attached Thumbnails Star.png  
    Last edited by Daniil; Nov 28, 2014 at 2:06 PM. Reason: [CLOSED]
  2. #2
    Hi Mario,

    I can suggest this solution.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                X.ResourceManager.RegisterIcon(Icon.Accept);
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Panel runat="server" Title="Title" Width="200">
                <HeaderConfig TitlePosition="0">
                    <Items>
                        <ext:Component runat="server" Flex="1" />
                        <ext:Button runat="server" Icon="Star" Handler="alert('Clicked');" />
                    </Items>
                    <Listeners>
                        <BeforeRender Handler="this.iconCls = 'icon-accept';
                                               this.initIconCmp();
                                               this.insert(0, this.iconCmp);" />
                    </Listeners>
                </HeaderConfig>
            </ext:Panel>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Increase Icon in Tab Header
    By Tactem in forum 2.x Premium Help
    Replies: 1
    Last Post: Jul 01, 2014, 1:30 PM
  2. Replies: 3
    Last Post: Sep 23, 2010, 2:45 PM
  3. [CLOSED] [1.0] Portlet header icon
    By betamax in forum 1.x Premium Help
    Replies: 13
    Last Post: Sep 06, 2010, 10:48 AM
  4. icon in the header column
    By maxdiable in forum 1.x Help
    Replies: 1
    Last Post: Jul 09, 2009, 10:30 AM
  5. Column header icon
    By methode in forum Feature Requests
    Replies: 0
    Last Post: Mar 28, 2009, 7:24 AM

Tags for this Thread

Posting Permissions