[CLOSED] When button click, open the menu of button

  1. #1

    [CLOSED] When button click, open the menu of button


    I wish when I click in button, open the menu of button.
    It´s possible?

    Thanks for any help... follow a example: When click in 'Business' button, open then menu of 'Businnes' button

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test12.aspx.vb" Inherits="WebApplication3.Test12" %>
    <%@ 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 runat="server">
        <form id="form1" runat="server">
        <ext:ResourceManager ID="resManagerSGCO" runat="server" Namespace="SuperaWeb.SGCO" />
        <ext:Panel ID="panelCenter" runat="server" Region="Center" Flex="1" layout="FitLayout" BodyPadding="6" >
            <TopBar><ext:Toolbar runat="server"><Items>
            <ext:ButtonGroup ID="btgNegocios" runat="server" Title="Negócios" Columns="2">
                    <ext:SplitButton runat="server" ID="btcNegocios" Text="Business" IconUrl="~/resources/images/toolbar/32x32/negocios.png" Scale="Large" ArrowAlign="Bottom" IconAlign="Top" RowSpan="3">
                            <ext:Menu ID="menuCotacoes" runat="server">
                                    <ext:menuitem runat="server" ID="mncRequisicoes" Text="Requisições" IconUrl="~/resources/images/toolbar/16x16/requisicoes.png" OnClientClick="addTab(#{tabWebExplorer}, 'Negocios.Requisicoes', 'Requisicoes');" />
                                    <ext:menuitem runat="server" ID="mncCotacoes" Text="Cotações" IconUrl="~/resources/images/toolbar/16x16/cotacoes.png" OnClientClick="addTab(#{tabWebExplorer}, 'Negocios.Cotacoes', 'Cotações');" />
                                    <ext:menuitem runat="server" ID="mncOrdemCompra" Text="Ordens de compra" IconUrl="~/resources/images/toolbar/16x16/ordem_compra.png" OnClientClick="addTab(#{tabWebExplorer}, 'Negocios.Ordem_Compra', 'Ordens de Compra');" />
                                    <ext:menuitem runat="server" ID="mncOrdemServico" Text="Ordens de serviço" IconUrl="~/resources/images/toolbar/16x16/ordem_servico.png" OnClientClick="addTab(#{tabWebExplorer}, 'Negocios.Ordem_Servico', 'Ordens de Serviço');" />
                                    <ext:menuitem runat="server" ID="mncCotacoes_Mapa" Text="Mapa de cotações" IconUrl="~/resources/images/toolbar/16x16/mapa_cotacoes.png" OnClientClick="addTab(#{tabWebExplorer}, 'Negocios.Cotacoes.Mapa', 'Mapa de cotações');" />
                                    <ext:menuitem runat="server" ID="mncOrdemCompra_Mapa" Text="Mapa de compras" IconUrl="~/resources/images/toolbar/16x16/mapa_compras.png" OnClientClick="addTab(#{tabWebExplorer}, 'Negocios.Ordem_Compra.Mapa', 'Mapa de compras');" />
    Last edited by Daniil; Feb 22, 2012 at 4:36 PM. Reason: [CLOSED]
  2. #2

    Then please use a common Button instead of SplitButton.
  3. #3
    Works fine!

    Thanks a lot.

Similar Threads

  1. open a asp:gridview footer on ext add button click
    By landerajshree in forum 1.x Help
    Replies: 0
    Last Post: Jun 28, 2012, 11:35 AM
  2. [CLOSED] Dynamically generate button and button menu problem.
    By csssi_coolite in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 22, 2011, 5:02 AM
  3. Replies: 4
    Last Post: Nov 19, 2010, 1:39 PM
  4. how to open new browser when i click button
    By Dinesh.T in forum 1.x Help
    Replies: 4
    Last Post: Mar 24, 2010, 3:48 AM
  5. Replies: 2
    Last Post: Oct 30, 2009, 1:54 PM

Posting Permissions