DialogFactory with custom content

1 Answer 40 Views
Dialog
Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
Martin Herløv asked on 12 Dec 2024, 10:43 AM | edited on 12 Dec 2024, 11:01 AM
I urgently need an awaitable dialog with custom content.

I am working with a DataGrid, and in the on-save event,

I need to validate some data. In certain cases,

I must display a dialog that allows the user to decide whether to save or cancel the update,

based on data retrieved from the API.

Is it possible to "hack" the DialogFactory to achieve this?

Radzen can do it? https://blazor.radzen.com/dialog?theme=material3

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Dec 2024, 07:33 PM

Hi Martin,

I can suggest an approach without DialogFactory and with a custom Grid Save command. In terms of UX it should be the same.

Custom confirmation Dialog during Grid editing

Regards,
Dimo
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.

Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 13 Dec 2024, 10:44 AM

I thank you for the solution, I will use it, but it isn't nice.

Lots of moving parts, and code all over.

var res = await DialogFactory.ShowDialog<MyDialogComponent>();

So, so much nicer
Tags
Dialog
Asked by
Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or