RadPanelBar Documentation Glitch

2 posts, 0 answers
  1. Konrad
    Konrad avatar
    21 posts
    Member since:
    Sep 2008

    Posted 17 Oct 2009 Link to this post



    In the online documentation for the OnClientItemClicking event http://www.telerik.com/help/aspnet-ajax/panel_panelbar_onclientitemclicking.html there is the following javascript:

    <script>  
    function OnClientItemClicking(sender, args)  
    {  
       var item = eventArgs.get_item();  
       var navigateUrl = item.get_navigateUrl();  
       if (navigateUrl && navigateUrl != "#")  
       {  
          var proceed = confirm("Navigate to "+ navigateUrl + " ?");  
          if (!proceed)  
          {  
             eventArgs.set_cancel(true);  
          }  
          else 
          {  
             eventArgs.set_cancel(false);  
          }  
    }  
    </script> 

    You will notice that the variables for the function are "sender" and "args" but everything inside the function uses "eventArgs" instead of "args". This has me going in circles for a while.

    Regards,
    Konrad
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 21 Oct 2009 Link to this post

    Hello Konrad,

    Thanks for the report. We will fix the typo with next official release.

    Greetings,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top