set Autopostback to false

2 posts, 1 answers
  1. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 04 Feb 2012 Link to this post


    My menu is bound to a sqldatasource and i would to disable the autopostback on the parent item.

    I know the parent item autopostback can be disable when you build your menu manually but how do i do so when my menu is data bound to a sqldatasource? Thanks
  2. Answer
    Kate avatar
    1898 posts

    Posted 08 Feb 2012 Link to this post

    Hi L,

    You can subscribe on the OnClientItemClicking event , check if the clicked item is rootitem and if so cancel the postback of the page:
    <script type="text/javascript">
    function onClicking(sender, eventArgs)
      var item = eventArgs.get_item();
      if (item.get_level() == 0)
    <telerik:RadMenu ID="RadMenu1" runat="server"

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top