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">
         <Items>
              <ComponentMenu:C1MenuItem ID="Test" runat="server" Text="Test" Value="TestValue">
                   <Items>
                        <ComponentMenu:C1MenuItem ID="C1MenuItem1" runat="server" Text="Test1" Value="Test1Value" />
                        <ComponentMenu:C1MenuItem ID="C1MenuItem2" runat="server" Text="Test2" Value="Test2Value" />
                   </Items>
              </ComponentMenu:C1MenuItem>
         </Items>
    </ComponentMenu:C1Menu>
    <asp:Label runat="server" ID="lbl" ></asp:Label>



    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