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