Unplanned
Last Updated: 26 Mar 2024 11:41 by ADMIN
Created by: Dan
Comments: 4
Category: Dialog
Type: Feature Request
12
Pressing the Enter key should trigger the Ok button in the Prompt Dialog
Completed
Last Updated: 22 Jan 2024 09:34 by ADMIN
Release 5.1.0 (31 Jan 2024) (R1 2024)
Created by: Raventhorn
Comments: 13
Category: Dialog
Type: Feature Request
49
Would be great to have the ability to customize the text of the Dialog Factory buttons, especially for Confirmation. We could use a Custom window but all we need to do is change the buttons and the Dialogs feature is perfect.
Unplanned
Last Updated: 20 Dec 2023 08:18 by ADMIN
Created by: Alain
Comments: 0
Category: Dialog
Type: Feature Request
2
I would like to be able to set the color of the title bar in a predefined Dialog.
Completed
Last Updated: 03 Aug 2023 12:18 by Anthony Gianino
Release 2.30.0

 <AdminEdit>

This feature request would be used to monitor the requests for a full-fledged Dialog component. It will be defined in the Markup and will provide options to customize the Header and Content and will expose Action buttons.

</AdminEdit>

Completed
Last Updated: 22 Jun 2023 11:17 by ADMIN
Release 4.4.0 (07/19/2023) (R3 PI1)
Created by: Aleksandr
Comments: 0
Category: Dialog
Type: Feature Request
13

I want to fill the textbox of the prompt with predefined text, can we have that same behavior like in kendo https://docs.telerik.com/kendo-ui/api/javascript/kendo/methods/prompt?

 

---------

ADMIN EDIT

Here is a workaround

 

@inject IJSRuntime _js

<TelerikButton OnClick="@PromptWithText">Workaround</TelerikButton>

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

    async Task PromptWithText()
    {
        // the workaround - invoke a script that will set the input value with a delay
        await _js.InvokeVoidAsync("setPromptDefaultText", "predefined prompt value");

        // do the prompts as usual
        string prompt = await Dialogs.PromptAsync("Enter something");
        Console.WriteLine(prompt);
    }
}

@* move this script to a proper location, this is a hack 
    to put in the blazor component so the workaround is easy to copy and run *@
<script suppress-error="BL9992">
    function setPromptDefaultText(defText) {
        setTimeout(function(){
            var promptInput = document.querySelector(".k-prompt-container .k-textbox .k-input-inner");
            if(promptInput) {
                promptInput.value = defText;
                promptInput.dispatchEvent(new Event('input', {bubbles: true} ));
            }
        }, 50); // a timeout so the prompt can render first
    }
</script>

 

---------

Unplanned
Last Updated: 31 Mar 2023 05:32 by ADMIN
Created by: Jonathan
Comments: 1
Category: Dialog
Type: Feature Request
6
Please disable page scrolling while the modal Dialog/Window is open. Some users may find the ability to scroll the background content confusing.
Unplanned
Last Updated: 17 Feb 2023 09:34 by Chris
Created by: Chris
Comments: 0
Category: Dialog
Type: Feature Request
8

Hello,

Please add support for MarkupString in the predefined awaitable dialogs. This will allow us to add new lines and other simple rich content, without the need to resort to the full-blown Dialog component.

Declined
Last Updated: 20 Oct 2022 12:30 by ADMIN
Created by: Rick
Comments: 1
Category: Dialog
Type: Feature Request
0

Currently using VisibleChanged event, I can tell when a dialog is closed.  However, if you have a component inside the dialog and trying to reference that component before the dialog is fully rendered you get a null reference exception.

What I am proposing is adding a new event or extending VisibleChanged so that we know when the dialog has been initialized.

Unplanned
Last Updated: 14 Jun 2022 08:22 by ADMIN
Created by: Chris
Comments: 4
Category: Dialog
Type: Feature Request
13
I would like to easily mock the DialogFactory.
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.
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");
        }
    }
}

---