C1Menu ItemClick Not Firing

Posted by: stevekane on 10 September 2017, 11:30 am EST

  • Posted 10 September 2017, 11:30 am EST

    Hello,


    I am testing version 3.5.20101.156 of ASP.NET Studio and am trying to trigger the ItemClick event on the server with no luck.  Code is below.


    Thanks,


    Steve



    <



     



     


    ComponentMenu:C1Menu ID="C1Menu1" runat="server" onitemclick="C1Menu1_ItemClick">
        
             
                  
                       
                       
                  

             

        




    protected 


     void C1Menu1_ItemClick(object sender, C1.Web.UI.Controls.C1Menu.C1MenuEventArgs e)
    {
         lbl.Text = e.Item.Text;
    }

     


     void C1Menu1_ItemClick(object sender, C1.Web.UI.Controls.C1Menu.C1MenuEventArgs e)
    {
         lbl.Text = e.Item.Text;
    }

     


     void C1Menu1_ItemClick(object sender, C1.Web.UI.Controls.C1Menu.C1MenuEventArgs e)
    {
         lbl.Text = e.Item.Text;
    }

  • Replied 10 September 2017, 11:30 am EST

    Hi,Steve,


    Please set the "AutoPostBack" property to true and try again.


    Regards.

  • Replied 10 September 2017, 11:30 am EST

    Thanks.  That works!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels