Unplanned
Last Updated: 14 Aug 2024 10:52 by ADMIN
Created by: Chris
Comments: 6
Category: Dialog
Type: Feature Request
14
I would like to easily mock the DialogFactory.
Completed
Last Updated: 05 Aug 2024 13:30 by ADMIN
Release 6.1.0

The issue can be reproduced when clicking on a button that opens a predefined Dialog, then making some changes on the page and hot reloading. In this scenario, I get the following error:

Microsoft.JSInterop.JSException: Cannot read properties of null (reading 'addEventListener')
TypeError: Cannot read properties of null (reading 'addEventListener')


Unplanned
Last Updated: 16 Jul 2024 11:59 by ADMIN
Created by: Dan
Comments: 7
Category: Dialog
Type: Feature Request
13
Pressing the Enter key should trigger the Ok button in the Prompt Dialog
Completed
Last Updated: 21 Jun 2024 12:44 by ADMIN
Release 2024 Q2 (May)
Created by: Ryan
Comments: 2
Category: Dialog
Type: Bug Report
4

There is a bug where DialogFactory is not resetting custom button text. In this example, if you click Show Prompt, the buttons are OK/CANCEL, then click Show Prompt with Title, Default Input Text and Custom Buttons, the buttons show READY/REJECT, clicking Show Prompt a second time will show the button text as READY/REJECT.

Unplanned
Last Updated: 23 May 2024 08:11 by ADMIN
When you open a predefined dialog (in OnInitialized) from inside a modal window, the dialog appears behind the modal.
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: 15 Nov 2023 17:09 by ADMIN
Release 5.1.0 (31 Jan 2024) (R1 2024)
Integrate components such as AutoComplete, DropDownList, ComboBox, or MultiColumnComboBox that use OnRead inside the Dialog. As a result, the focus set by the FocusedElementSelector will no longer function if you close and reopen the Dialog.
Declined
Last Updated: 07 Nov 2023 12:10 by ADMIN
Scheduled for 5.0.0 (15 Nov 2023) (R1 PI1)
When the customer tabs, the focus is going to the next element on the page behind/under the Dialog. That can happen only if the input behind the Dialog has its TabIndex set.
Unplanned
Last Updated: 14 Aug 2023 08:23 by ADMIN

Hello,

I am using DialogFactory in a Blazor server app with PreRendering disabled.

It appears to cause more than expected OnParametersSet calls - its firing 2-6 times per page opening. Without DialogFactory it fires only once.

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>

Unplanned
Last Updated: 02 Aug 2023 06:26 by ADMIN

Hello I want to close a TelerikDialog using Esc key and this does not work sometimes. Run this REPL snippet please https://blazorrepl.telerik.com/cnYrwUYq54FZ70xP17. Click into dialog title for instance and press Esc key. Nothing happens.

Very thanks.

Miroslav

  
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>

 

---------

Duplicated
Last Updated: 26 Apr 2023 10:24 by ADMIN

Hi!

Please check the example:

https://blazorrepl.telerik.com/mdaIltlV32cFnMiX42

Why is predefined dialog put in to the back? This happens when i show predefined dialog from OnInitialize or AfterRendered method.

Regards, BoĊĦtjan

Unplanned
Last Updated: 31 Mar 2023 05:32 by ADMIN
Created by: Jonathan
Comments: 1
Category: Dialog
Type: Feature Request
9
Please disable page scrolling while the modal Dialog/Window is open. Some users may find the ability to scroll the background content confusing.
Completed
Last Updated: 21 Mar 2023 13:38 by ADMIN
Release 4.2.0 (26/04/2023)

Pressing Espace in a focused SearchBox throws an "Error: System.ObjectDisposedException: The CancellationTokenSource has been disposed." exception.

<AdminEdit>

A workaround that will solve the issue until the fix is released.

<TelerikDialog @bind-Visible="@Visible"
               Title="@Title">
    <DialogContent>
        <TelerikGrid Data=@GridData Pageable="true" Height="400px" Width="700px">
            <GridToolBar>
                <span class="k-toolbar-spacer"></span> @* add this spacer to keep the searchbox on the right *@
                <div onkeydown="event.stopPropagation()">
                    <GridSearchBox />
                </div>
            </GridToolBar>
            <GridColumns>
                <GridColumn Field="@(nameof(Employee.EmployeeId))" />
                <GridColumn Field=@nameof(Employee.Name) />
                <GridColumn Field=@nameof(Employee.Team) Title="Team" />
                <GridColumn Field=@nameof(Employee.IsOnLeave) Title="On Vacation" />
            </GridColumns>
        </TelerikGrid>
    </DialogContent>
</TelerikDialog>

@code {
    private bool Visible { get; set; } = true;
    private string Title { get; set; } = "Software Update";

    public List<Employee> GridData { get; set; }

    protected override void OnInitialized()
    {
        GridData = new List<Employee>();
        var rand = new Random();
        for (int i = 0; i < 15; i++)
        {
            GridData.Add(new Employee()
                {
                    EmployeeId = i,
                    Name = "Employee " + i.ToString(),
                    Team = "Team " + i % 3,
                    IsOnLeave = i % 2 == 0
                });
        }
    }

    public class Employee
    {
        public int EmployeeId { get; set; }
        public string Name { get; set; }
        public string Team { get; set; }
        public bool IsOnLeave { get; set; }
    }
}

 

</AdminEdit>

Unplanned
Last Updated: 17 Feb 2023 09:34 by Chris
Created by: Chris
Comments: 0
Category: Dialog
Type: Feature Request
12

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.

Completed
Last Updated: 06 Jun 2022 11:48 by ADMIN
Release 3.4.0
Created by: Bob
Comments: 0
Category: Dialog
Type: Bug Report
8
I would like to use the Prompt Dialog for an "optional" response.  

Currently I cannot tell the difference between the User clicking Cancel, and the user clicking OK, but not entering anything in the Text box?
Completed
Last Updated: 02 May 2022 12:28 by ADMIN
Release 3.3.0

ADMIN EDIT

You can use the code snippet below to test this behavior in your app. At the end of the post you will find two sample apps attached that use that same code - one is OK, the other exhibits the issue. The difference in them is the layout. The one that works OK has the old MS template from over a year ago where there is an <app> element above the root of the blazor components, and that element has display: flex. The problematic app has the newer template without such a parent element - the parent element is not the <body> and it does not have display:flex. You can add in the following rule to it to see it will fix the dialog overlay error (but it can damage the layout of the app).

sample rule to fix the issue in the problematic app

    body {
        display:flex;
    }

sample code to test the behavior

<TelerikWindow Modal="true" @bind-Visible="@isModalVisible">
    <WindowTitle>
        <strong>The Title</strong>
    </WindowTitle>
    <WindowContent>
        I am modal so the page behind me is not available to the user.
        <br />
        <TelerikButton OnClick="@( _ => isSecondModalVisible = true )">Open the SECOND window</TelerikButton>
        <TelerikButton OnClick="@ShowConfirmWithTitle">Show Confirm</TelerikButton>
    </WindowContent>
    <WindowActions>
        <WindowAction Name="Minimize" />
        <WindowAction Name="Maximize" />
        <WindowAction Name="Close" />
    </WindowActions>
</TelerikWindow>

<TelerikWindow Modal="true" @bind-Visible="@isSecondModalVisible">
    <WindowTitle>
        <strong>The SECOND</strong>
    </WindowTitle>
    <WindowContent>
        Second modal!
    </WindowContent>
    <WindowActions>
        <WindowAction Name="Minimize" />
        <WindowAction Name="Maximize" />
        <WindowAction Name="Close" />
    </WindowActions>
</TelerikWindow>

<TelerikButton OnClick="@( _ => isModalVisible = true )">Open the window</TelerikButton>

@code{
    [CascadingParameter]
    public DialogFactory Dialogs { get; set; }
    bool isModalVisible { get; set; }
    bool isSecondModalVisible { get; set; }
    async Task ShowConfirmWithTitle()
    {
        bool isConfirmed = await Dialogs.ConfirmAsync("Are you sure?", "Confirmation!");

        Console.WriteLine($"The user is sure: {isConfirmed}.");
    }
}

1 2