How to find the URL on click of menuitem

  1. #1

    How to find the URL on click of menuitem

    Ext.Net.MenuItem objMenuItem;
        objMenuItem = new Ext.Net.MenuItem();
                                objMenuItem.ID = "SM_" + "222";
                                objMenuItem.IconCls ="patient.png";
                                objMenuItem.Text = "Patient";                      
                                objMenuItem.AutoPostBack = false;
                                objMenuItem.HideOnClick = true;
                                objMenuItem.CustomConfig.Add(new ConfigItem("url", this.Page.ResolveUrl("~/Pages/ChatWindow.aspx"),ParameterMode.Value));
                                objMenuItem.DirectEvents.Click.Event += MenuItem_Click;
                                objMenuPanel.Menu.Items.Add(objMenuItem);
    Above code i m createing the dynamically menuitem & setting the CustomConfig & ConfigItem.But how to find the Custom url on menuitem click..

    pls help me as soon as possible...its very very urgent......
    Last edited by Daniil; Apr 01, 2011 at 3:05 PM. Reason: Please use [CODE] tags
  2. #2
    Try this:
    <Listeners>
            <ItemClick Handler="alert(menuItem.url);" />
    </Listeners>

Similar Threads

  1. MenuItem Click event is not working
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 5:36 AM
  2. How to find the URL on click of menuitem
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 5:29 AM
  3. How to get parent menuItem when click menuItem?
    By zhangsir199 in forum 1.x Help
    Replies: 2
    Last Post: Jan 21, 2011, 2:58 AM
  4. Replies: 2
    Last Post: Oct 22, 2010, 11:04 AM
  5. [CLOSED] [1.0] MenuItem Click DirectEvent
    By methode in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 18, 2009, 10:41 AM

Posting Permissions