I have a popunEditor that opens a Container in which I have a filedialog to open a file.
as soon as I select the file the container closes (see attached screen copy)
Is there a way to prevent this to happen and close only on demand ?
2 Answers, 1 is accepted
0
Nadya | Tech Support Engineer
Telerik team
answered on 14 Sep 2020, 04:14 PM
Hello, Pierre-jean,
RadPopupEditor offers the PopupClosing event which is triggered right before the associated RadPopupContainer closes. Through its arguments, it is allowed to cancel closing the container. Thus, you can raise a flag and cancel the event if needed. Please refer to the code snippet below:
bool flag = true;
this.radPopupEditor1.PopupClosing += this.RadPopupEditor1_PopupClosing;
privatevoidRadPopupEditor1_PopupClosing(object sender, RadPopupClosingEventArgs args)
{
if (flag)
{
args.Cancel = true;
}
}
I hope this helps. Should you have other questions do not hesitate to ask.
Regards,
Nadya
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/.