This is a migrated thread and some comments may be shown as answers.

RadPanelBar Documentation Glitch

1 Answer 47 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Konrad
Top achievements
Rank 1
Konrad asked on 17 Oct 2009, 03:52 PM


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

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 21 Oct 2009, 01:10 PM
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.
Tags
Documentation and Tutorials
Asked by
Konrad
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or