You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/button/functionality/confirm-dialog.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,21 @@ position: 0
10
10
11
11
# Button Confirm Dialog
12
12
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.
14
14
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.
16
16
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
21
18
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*)
25
26
26
-
## Examples
27
+
## Using window.confirm()
27
28
28
29
Enable the Confirm Dialog by defining a value for the **ConfirmText** property
29
30
@@ -33,13 +34,11 @@ Enable the Confirm Dialog by defining a value for the **ConfirmText** property
33
34
</telerik:RadButton>
34
35
````
35
36
36
-
DEMO using **window.confirm()**
37
+
Example using **window.confirm()**
37
38
38
39

39
40
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
43
42
44
43
In addition to the RadButton, add a RadWindowManager on the page as well.
45
44
@@ -51,7 +50,7 @@ In addition to the RadButton, add a RadWindowManager on the page as well.
0 commit comments