Skip to content

Commit 19075d8

Browse files
committed
docs(button): improve description
1 parent 88b36a5 commit 19075d8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Diff for: controls/button/functionality/confirm-dialog.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@ position: 0
1010

1111
# Button Confirm Dialog
1212

13-
Built-in functionality used to show confirmation pop-up/dialog asking for confirmation from the user for the next actions, whether a client-script is to be executed or a Post back to be done. As of R2 2019, all button types except the **RadRadioButtonList** and **RadCheckboxList** come with built-in *Confirmation Dialog* and you can enable it simply by defining a text for the **ConfirmText** property.
13+
Built-in functionality used to show confirmation pop-up/dialog asking for confirmation from the user for the next actions, whether a client-script is to be executed or a Post back to be done.
1414

15-
### Settings/Properties
15+
As of R2 2019, all button types except the **RadRadioButtonList** and **RadCheckboxList** come with built-in *Confirmation Dialog* and you can enable it simply by defining a text for the **ConfirmText** property. See the [Button - Confirm Dialog](https://demos.telerik.com/aspnet-ajax/controls/examples/integration/buttonconfirmdialog/defaultcs.aspx) online demo.
1616

17-
* **ConfirmText**: Enables the Confirm Dialog functionality and sets the confirmation message
18-
* **UseRadConfirm**: Switches between RadConfirm and window.confirm() dialog mode. Default value: true
19-
20-
### Settings to customize the RadConfirm dialog window
17+
### Properties
2118

22-
* **Title**: Sets the title of the dialog window
23-
* **Height**: Sets the dialog height
24-
* **Width**: Sets the dialog width
19+
* **ConfirmText**: Enables the Confirm Dialog functionality and sets the confirmation message
20+
* **UseRadConfirm**: Switches between RadConfirm and window.confirm() dialog mode.
21+
* Default value: **true**
22+
* `UseRadConfirm="True"` requires a **RadWindowManager** on the page
23+
* **Title**: Sets the title of the dialog window (*applicable for RadConfirm only*)
24+
* **Height**: Sets the dialog height (*applicable for RadConfirm only*)
25+
* **Width**: Sets the dialog width (*applicable for RadConfirm only*)
2526

26-
## Examples
27+
## Using window.confirm()
2728

2829
Enable the Confirm Dialog by defining a value for the **ConfirmText** property
2930

@@ -33,13 +34,11 @@ Enable the Confirm Dialog by defining a value for the **ConfirmText** property
3334
</telerik:RadButton>
3435
````
3536

36-
DEMO using **window.confirm()**
37+
Example using **window.confirm()**
3738

3839
![Button Confirm Dialog using Window.confirm()](images/button-confirm-dialog-window-confirm.gif)
3940

40-
Use RadConfirm for the Confirm Dialog
41-
42-
>note Since the default value of the `UseRadConfirm` property is `True`, and so if **RadWindowManager** is present on the page, RadConfirm will be used as the Confirm Dialog.
41+
## Using RadConfirm
4342

4443
In addition to the RadButton, add a RadWindowManager on the page as well.
4544

@@ -51,7 +50,7 @@ In addition to the RadButton, add a RadWindowManager on the page as well.
5150
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>
5251
````
5352

54-
DEMO using **RadConfirm**
53+
Example using **RadConfirm**
5554

5655
![Button Confirm Dialog using RadConfirm](images/button-confirm-dialog-radconfirm.gif)
5756

@@ -104,5 +103,6 @@ DEMO using **RadConfirm**
104103

105104
## See Also
106105

106+
* [Online Demo](https://demos.telerik.com/aspnet-ajax/controls/examples/integration/buttonconfirmdialog/defaultcs.aspx?product=button)
107107
* [Button - Confirm Postback](https://demos.telerik.com/aspnet-ajax/button/examples/confirm/defaultcs.aspx)
108108
* [Window - Confirm Dialog Integration](https://demos.telerik.com/aspnet-ajax/window/examples/confirmserverclicks/defaultcs.aspx)

0 commit comments

Comments
 (0)