Completed
Last Updated: 14 Mar 2022 09:39 by ADMIN
Release 3.2.0
Created by: Scott
Comments: 0
Category: Dialog
Type: Bug Report
0

https://blazorrepl.telerik.com/cGEHOxYU12TavfAP41

Dialog component does not recalculate its z-index based on the existing window components. Thus, it is displayed behind the window.

Duplicated
Last Updated: 23 Oct 2021 12:54 by ADMIN
Created by: Stewart
Comments: 1
Category: Dialog
Type: Feature Request
0
would be nice to be able to require input from the user if they are going to press OK in the prompt dialog, currently you don't require any input so the result is the same as cancel
Unplanned
Last Updated: 29 Sep 2021 13:24 by ADMIN
Created by: Doug
Comments: 0
Category: Dialog
Type: Feature Request
1
It would be great if we had the ability to add an icon to a dialog, similar to the attached screenshot of the dialog I wrote using a Telerik window.
Duplicated
Last Updated: 23 Aug 2021 14:29 by ADMIN

I have a Modal Window showing and then show a Predefined Dialog alert.  You can click on the modal window and the Alert dialog goes behind and you have to close the modal, then close the alert dialog.

It would be nice if the the predefined dialogs were always modal on top of all windows.

Unplanned
Last Updated: 21 Jun 2021 06:59 by ADMIN
Created by: Guy
Comments: 0
Category: Dialog
Type: Feature Request
1
I would like to use a similar parameter to the RestrictionZoneID in AJAX - https://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx
Completed
Last Updated: 18 May 2021 06:07 by ADMIN
It I possible to customize the Dialog component (e.g Yes/No instead of OK/Cancel)?
Unplanned
Last Updated: 07 May 2021 00:29 by Baires
Created by: Yuri
Comments: 1
Category: Dialog
Type: Feature Request
5

Can I define the Cancel home button by default? When deleting a line I use Confirm Dialogs, I want the default (active) button to be Cancel (not Ok)

---

ADMIN EDIT

Here is a solution you can use:

@inject IJSRuntime _js

@* move this script to a proper place in your project and remove the 
    suppress-error hack that lets it stay in the component - it is here for brevity only *@
<script suppress-error="BL9992">
    function focusCancelDialogButton() {
        setTimeout(function() {
            var cancelButtons = document.querySelectorAll(".k-dialog .k-dialog-buttongroup .k-button");
            if(cancelButtons && cancelButtons.length > 1) {
                cancelButtons[1].focus();
            }
        }, 100);
    }
</script>

<TelerikButton OnClick="@ShowConfirm">Show Confirm</TelerikButton>

@code {
    [CascadingParameter]
    public DialogFactory Dialogs { get; set; }

    public async Task ShowConfirm()
    {
        await _js.InvokeVoidAsync("focusCancelDialogButton");
        bool isConfirmed = await Dialogs.ConfirmAsync("Are you sure?");

        if (isConfirmed)
        {
            Console.WriteLine("The user is sure, continue.");
        }
        else
        {
            Console.WriteLine("The user changed their mind");
        }
    }
}

---

1 2