[CLOSED] MenuItem click event firing c# code behind.

  1. #1

    [CLOSED] MenuItem click event firing c# code behind.

    Hello and thanks in advance!

    Where can I find a sample of a MenuItem click event (DirectEvents?) calling a C# method in code behind ? I will also need to pass parameters on the call to the code behind.



    Thank you
    George
    Last edited by Baidaly; Feb 26, 2013 at 6:54 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please see the following sample
    https://examples2.ext.net/#/Toolbar/Menu/Overview/

    <ext:MenuItem runat="server" Text="Menu 3">
    	<DirectEvents>
    		<Click OnEvent="Menu3_Click">
    			<EventMask ShowMask="true" />
    			<ExtraParams>
    				<ext:Parameter Name="Param" Value="Menu 3" Mode="Value" />
    			</ExtraParams>
    		</Click>
    	</DirectEvents>
    </ext:MenuItem>
    
    protected void Menu3_Click(object sender, DirectEventArgs e)    {        X.MessageBox.Alert("Click", e.ExtraParams["Param"]).Show();    }
  3. #3
    Thanks very much.

    Works great.

    George

Similar Threads

  1. Replies: 1
    Last Post: Feb 06, 2013, 5:39 PM
  2. Replies: 1
    Last Post: Jan 19, 2013, 3:34 AM
  3. [CLOSED] MenuItem OnClick event not firing
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 16, 2012, 5:50 AM
  4. Replies: 1
    Last Post: May 09, 2012, 7:08 PM
  5. MenuItem Click event is not working
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Mar 31, 2011, 5:36 AM

Tags for this Thread

Posting Permissions