This is a migrated thread and some comments may be shown as answers.

The Alert window is sometimes not visible.

1 Answer 164 Views
Window
This is a migrated thread and some comments may be shown as answers.
minseok
Top achievements
Rank 1
minseok asked on 05 Apr 2021, 04:53 AM

I am calling RadWindow's Alert in the following code.

Even though it transfers control to the main window of the program, it disappears if you do not click the OK button after showing it for a while.

And I can't click the confirmation button anymore.

 

call.cs

AlertWindow.Alert(ret.Error.UserMessage);

 

alertWindow.cs

public class AlertWindow
    {
    public static void Alert(string msg, string header=null, ILog log = null, ContentControl contentControl=null)
        {
            if (header == null)
                header = "title";
            if (contentControl == null)
                contentControl = Application.Current.Windows.Cast<Window>().FirstOrDefault(win => win.Topmost);
 
            Telerik.Windows.Controls.RadWindow.Alert(new Telerik.Windows.Controls.DialogParameters
            {
                Content = msg,
                Header = header,
                OkButtonContent = MulBangUl.Resources.Localization.CommonResources.CmdConfirm,
                Owner = contentControl
            });
 
            if (log != null)
                log.Info(msg);
        }

}


1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 05 Apr 2021, 01:18 PM

Hi minseok,

Thank you for the provided code snippet. 

I have reviewed your case but I am not sure that I have fully understood the problem here. I have created a sample using the code snippet. May I ask you to check it on your side and add more details at the described behavior?

I am looking forward to your reply.

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

Tags
Window
Asked by
minseok
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or