Declined
Last Updated: 30 Nov 2021 16:23 by ADMIN
Özmen
Created on: 29 Nov 2021 08:13
Category: Window
Type: Bug Report
0
Enclosing div doesn't recognize defined class / id

When using an enclosing div element for Your Telerik Window component:

A view in the web console shows that the defined name in the class-attribute of the div element isn't recognized.

3 comments
ADMIN
Apostolos
Posted on: 30 Nov 2021 16:23

Hello Özmen,

Thank you for the screenshots, which made things more clear.

I assume that you are using the custom CSS class of the <div> to style the Window or its content. Knowing that the Window is moved in the DOM, it is easier to set the Class attribute of the Window. Doing this will give you the ability to change the appearance of the content and elements of the component.

You can find more information in Styling section of the Window documentation.

I am setting this item status as Declined. Let me know if your scenario is different and the above information is not relevant.

Regards, Apostolos Giatsidis Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Özmen
Posted on: 30 Nov 2021 06:31
my WINDOW component is as follow:

ADMIN
Marin Bratanov
Posted on: 29 Nov 2021 19:16

Hello,

Could you provide some more details on what exactly you are trying to achieve? I am asking, because the Window component does not render at the place of declaration and so it is not expected that its parent in the markup is going to be its parent in the DOM when rendered.

If this does not explain the situation, could you post an example of the Window component issue based on this sample:

<TelerikWindow @bind-Visible="@WindowIsVisible">
    <WindowTitle>
        <strong>The Title</strong>
    </WindowTitle>
    <WindowContent>
        This is my window <strong>popup</strong> content.
    </WindowContent>
    <WindowActions>
        <WindowAction Name="Minimize"></WindowAction>
        <WindowAction Name="Maximize"></WindowAction>
        <WindowAction Name="Close"></WindowAction>
    </WindowActions>
</TelerikWindow>

<TelerikButton OnClick="@( () => WindowIsVisible = !WindowIsVisible )">Toggle window</TelerikButton>

@code {
    bool WindowIsVisible { get; set; }
}

 

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.