What is the best way to get Javascript Intelliense working on the controls within an client-side event when an item is passed into the event instead of the entire RadControl? For example, in the RadMenu's OnClientItemClicking event, the second parameter passed in has a "get_item" functioin that grabs the RadMenuItem that was clicked. Is there a way to get Intellisense working on that item? An example would in the following snippet from the docs, where I would love to get Intellisense on the "item" variable.
Thanks,
Chris
Thanks,
Chris
| <script type="text/javascript"> |
| function onClicking(sender, eventArgs) |
| { |
| 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> |