Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
WebDataMenu Dynamic ItemClick Events not Working
posted

The WebDataMenu ItemClick events are not working for me when they are registered dynamically.  The events do work when set statically in the page markup.

This is motivated by an upgrade of a legacy application using UltraWebToolbar, which was working.  I'm using version 2014.2 (I haven't tried 2015.1 yet).

Anyone else see this issue?

Thanks,

Seth

****************************

It can be demonstrated with a simple ASP.NET page:

CS section:

    protected void Page_Load(object sender, EventArgs e)
    {
        WebDataMenu1.ItemClick += new Infragistics.Web.UI.NavigationControls.DataMenuItemEventHandler(Control_ButtonClicked);
    }

    public void Control_ButtonClicked(object sender, Infragistics.Web.UI.NavigationControls.DataMenuItemEventArgs be)
    {
        int i = 1;
    }

ASPX section:

    <ig:WebDataMenu ID="WebDataMenu1" runat="server" EnableScrolling="false" AutoPostBackFlags-ItemClick="On">
        <GroupSettings Orientation="Horizontal" />
        <Items>
            <ig:DataMenuItem Text="Test">
            </ig:DataMenuItem>
            <ig:DataMenuItem Text="1">
            </ig:DataMenuItem>
            <ig:DataMenuItem Text="2">
            </ig:DataMenuItem>
            <ig:DataMenuItem Text="3">
            </ig:DataMenuItem>
        </Items>
    </ig:WebDataMenu>

Parents Reply Children