Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update onclientclicking.md
Minor copy edits.
  • Loading branch information
erikruth authored and danail-vasilev committed Jan 6, 2016
commit c82a12aac48732d6e7c5be90cbc34f2ef4b51e00
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ The clicking event occurs when the RadToggleButton control is clicked, immediate

The event handler receives two parameters:

1. The instance of the clicked RadToggleButton control
1. The instance of the clicked RadToggleButton control.

1. An eventArgs parameter of type [Telerik.Web.UI.**ButtonCancelEventArgs**](http://docs.telerik.com/devtools/aspnet-ajax/api/client/args/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.

* get_commandName() - returns the value assigned to the RadToggleButton's **CommandName** property
* get_commandName() - returns the value assigned to the RadToggleButton's **CommandName** property.

* get_commandArgument() - returns the value assigned to the RadToggleButton's **CommandArgument** property
* get_commandArgument() - returns the value assigned to the RadToggleButton's **CommandArgument** property.

This event comes handy in scenarios when the user wants to cancel the page submission, or prevent execution of the other client-side events based on a certain condition. One such scenario is confirming the submission of the page to the server. We ask the user if she wants to submit the page, and if a negative answer is received, we cancel the clicking event. Here is the code:
This event is handy in scenarios when the user wants to cancel the page submission, or prevent execution of the other client-side events based on a certain condition. One such scenario is confirming the submission of the page to the server. We ask the user if she wants to submit the page, and if a negative answer is received, we cancel the clicking event. Here is the code:

>caption Example 1: Handling OnClientClicking event in RadToggleButton.

Expand Down