Unplanned
Last Updated: 29 May 2024 09:49 by Johan
Created by: Johan
Comments: 0
Category: Window
Type: Feature Request
1
Currently, the "Restore" action is missing from the built-in actions of the Window component. Add the "Restore" button like the other three built-in buttons - "Close", "Minimize", "Maximize"
Unplanned
Last Updated: 22 Apr 2024 14:34 by Frank
Created by: Frank
Comments: 0
Category: Window
Type: Bug Report
1

The Window can display as centered, but after the user moves or resizes it, the app is not able to center the Window programmatically.

The only possible workaround is to toggle the Window's Visible parameter:

https://blazorrepl.telerik.com/weaewmFe32oT4rnQ42

<TelerikWindow @bind-Top="@Top" @bind-Left="@Left" Centered="@Centered" @bind-Visible="@Visible">
    <WindowTitle>
        Title
    </WindowTitle>
    <WindowContent>
        Drag or resize the Window and center it afterwards...
    </WindowContent>
</TelerikWindow>

<TelerikButton OnClick="@( () => Visible = !Visible )">Toggle Window</TelerikButton>
<TelerikButton OnClick="@OnCenterClick">Center</TelerikButton>

@code {
    string Top { get; set; }
    string Left { get; set; }
    bool Centered = false;
    bool Visible { get; set; } = true;

    async Task OnCenterClick()
    {
        Visible = false;
        await Task.Delay(1);

        Top = Left = string.Empty;
        Visible = true;
    }
}

Unplanned
Last Updated: 26 Oct 2023 10:09 by ADMIN
Created by: Michael
Comments: 8
Category: Window
Type: Feature Request
23

It would be nice to be able to configure a show/hide animation for windows.

ADMIN EDIT: This might include a form of a Shown event so that you could know when the content is rendered and available to, for example, focus a button or input. For more details see here

Unplanned
Last Updated: 07 Mar 2023 16:07 by Alexandre
Created by: Alexandre
Comments: 2
Category: Window
Type: Feature Request
7
I would like to set custom values to the aria-labelledby and aria-describedby HTML attributes via parameters like in other components in the Telerik UI for Blazor suite.
Unplanned
Last Updated: 21 Dec 2022 11:54 by Venu
The dropdown is not showing all items and the page behind the window is scrolling instead.
Unplanned
Last Updated: 20 Sep 2022 13:03 by ZwapSharp
Created by: ZwapSharp
Comments: 0
Category: Window
Type: Feature Request
3
I would like to use an event that fires when the Window is on focus. 
Unplanned
Last Updated: 03 Jun 2022 05:26 by ADMIN
Created by: MichaƂ
Comments: 2
Category: Window
Type: Feature Request
8

I would like to have an event that fires when the user closes the Window and to be able to cancel the event. I would like to have an identifier if the user pressed the "Esc" key or the Close button rendered in the Browser.

---

ADMIN EDIT

---

At the time of writing, only using the VisibleChanged event can let you prevent the Window from closing. As a workaround, you can cancel this event and use a custom close command that will not trigger it to, effectively, disable closing with Esc: https://blazorrepl.telerik.com/GcaqOxkT13mCiQ4q33.

Unplanned
Last Updated: 02 Feb 2021 10:57 by ADMIN
Created by: Oussama
Comments: 0
Category: Window
Type: Feature Request
3

---

admin edit

At the moment this is not guaranteed and if you want to customize the behavior you should use a custom action to get the OnClick handler, and control the window through its parameters.

Here is an example of implementing a custom close button that also fires an event:

 

<TelerikWindow Visible="@IsWindowVisible" Modal="true" Centered="true">
    <WindowTitle>WindowTitle</WindowTitle>
    <WindowContent>
        lorem ipsum
    </WindowContent>
    <WindowActions>
        <WindowAction Name="MyCustomAction" Icon="close" OnClick="@HandleCancel" />
    </WindowActions>
</TelerikWindow>

@code{
    bool IsWindowVisible { get; set; } = true;

    async Task HandleCancel()
    {
        Console.WriteLine("my custom click happened");
        IsWindowVisible = false;//hide the window with your own code if you also want to do that
    }
}

 

---
Unplanned
Last Updated: 18 May 2020 09:03 by ADMIN
Created by: Paul Shearing
Comments: 3
Category: Window
Type: Feature Request
3

Can we please have an [Open] or [Init] or [OnVisible] event exposed for Blazor Windows?

There is a whole bunch of stuff that I need to do in a Window (e.g. custom modal editing form that needs a lot of temporary supporting data structures) and I am having to do the work in a method that that opens the window, before the Window is opened and passing many data structures to the Window as parameters (there could be more than 20 of these). This is messy.

It would be much simpler, neater and efficient to have the Window create these resources on the fly when the Window is made visible and to dispose of them when the window closes. I would then only need to pass a few essential parameters.

I'm guessing this is a new feature request because I cannot see any way of detecting, in the code for a Window, that it has just been opened (or am I missing something?).

Kind regards,

Paul

Unplanned
Last Updated: 18 Apr 2020 11:38 by ADMIN
Created by: Uluç
Comments: 1
Category: Window
Type: Feature Request
2
Is it possible to add a button that has text to the window action section?