The clicking event occurs when the RadLinkButton control is clicked, immediately after the mouse button is released. The event is fired after the client-side validation occurs, and can be canceled.
The event handler receives two parameters:
The instance of the clicked RadLinkButton control
An eventArgs parameter of type Telerik.Web.UI.ButtonCancelEventArgs, containing the following properties and methods:
get_cancel() - returns a bool value that indicates whether the event was canceled. True means the event is canceled.
set_cancel(shouldCancel) - sets a bool value that indicates whether the event will be canceled. Setting true means the event will be canceled.
This event comes handy in scenarios when the user wants to cancel the page navigation, or prevent execution of the other client-side events based on a certain condition. For example we ask the user if she wants to navigate to the page, and if a negative answer is received, we cancel the clicking event. Here is the code: