Completed
Last Updated: 03 Aug 2023 12:18 by Anthony Gianino
Release 2.30.0
Arash
Created on: 27 May 2021 06:30
Category: Dialog
Type: Feature Request
29
Rendering Html texts in header and content (custom dialog content/html/components)

 <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>

6 comments
Anthony Gianino
Posted on: 03 Aug 2023 12:18
Agreed.  The built in dialogs absolutely need this.  Not being able to have mulitple lines is a pain.  Having to implement a full blown dialog for this is very annoying.
ADMIN
Dimo
Posted on: 18 Nov 2022 07:25

Tom - please use the full-blown Dialog instead of the predefined ones.

Tom
Posted on: 12 Nov 2022 09:21
So this feature request is showing as COMPLETED and available in R2.30.0 but I believe this feature is still missing right?
ADMIN
Marin Bratanov
Posted on: 27 Jun 2021 10:24

Hi Jason,

Thank you for your input. How would you want this feature exposed in the component API?

I am asking because this is, in fact, a serious security risk, and at this point I cannot commit to how that would be possible (right now I am personally leaning more towards exposing a component type and a dictionary of parameters so that the Telerik Dialog will render your own component that will decide how to present data).

Personally, I would be wary of changing the default framework behavior (the framework encodes HTML for rendering, not us), and using a MarkupString behind a flag seems like a risky solution to me that can open up the door to XSS attacks.

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.

Jason
Posted on: 21 Jun 2021 14:48

Just to add to this as it seems Marin has asked for more information.

I believe this has been raised as originally the author wanted to add line breaks. I'm here for exactly the same reason, the dialog window renders <br/> instead of adding a line break. I understand this is to prevent attacks but .... having to create a window just to add a line break to a message is overkill to say the least. 

I was hoping to use the Telerik dialog throughout a large application but this prevents it. Can this feature request be escalated? It is so close... HtmlEncode would do it and then leave it up to the developer to worry about the data being presented?

Thanks

Jason

ADMIN
Marin Bratanov
Posted on: 27 May 2021 09:41

Hello Arash,

You can do that with the Window component at the moment:
https://docs.telerik.com/blazor-ui/components/window/overview.

Here is a possible implementation where the TelerikWindow is used like a Dialog:
https://github.com/telerik/blazor-ui/tree/master/common/confirm-button

That said, could you provide some more details on how you would expect that to be exposed for configuration?

Regards,
Marin Bratanov
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/.