I do not want to use autopostback in radmenu OnItemClick.

1 posts, 0 answers
  1. SeungHak
    SeungHak avatar
    3 posts
    Member since:
    Oct 2015

    Posted 06 Feb 2018 Link to this post

    Hi~

    If I use OnClientItemClicking, I will not use autopostback, but I can not use the event I want.

    What should I do?

     

    .aspx

    <script type="text/javascript">

    function onClicking(sender, eventArgs)
    {
      var item = eventArgs.get_item();

      if (item.get_level() == 0)
      {
          eventArgs.set_cancel(true);
      }
    }
    </script>

    <telerik:RadMenu ID="RadMenu1" runat="server" Skin="Windows7"
      OnItemClick="RadMenu1_ItemClick" OnClientItemClicking="onClickingMenu" />

     

    .cs

    protected void RadMenu1_ItemClick(object sender, RadMenuEventArgs e)

               //my event

    }

Back to Top