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

Set the "Title" when using the "RadWindow.Alert()" method.

4 Answers 347 Views
Window
This is a migrated thread and some comments may be shown as answers.
haochen
Top achievements
Rank 1
haochen asked on 02 Jul 2014, 09:52 AM
Hi,

I want to change the Title when I using "RadWindow.Alert()" and "RadWindow.Confirm()" method.

Please watch this codes:
RadWindow.Alert("aaaa");

and please watch the attachment.

4 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 02 Jul 2014, 11:51 AM
Hello Haochen,

What you need to do is to use the first overload of the RadWindow.Alert() method and pass an object of type
DialogParameters - the object contains all of the needed properties:
RadWindow.Alert(new DialogParameters { Header = "Test", Content = "aaaa" });

For more details about the predefined dialogs you can check the following article from our online help documentation
http://www.telerik.com/help/wpf/radwindow-features-predefined-dialogs.html:

Hope this helps.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
haochen
Top achievements
Rank 1
answered on 02 Jul 2014, 12:30 PM
Thank you
0
Hakem
Top achievements
Rank 1
answered on 02 Aug 2016, 05:11 PM
How to set Header/Title of Radwindow, when using onClose event in confirm method? The first parameter must be the text.
0
Kalin
Telerik team
answered on 04 Aug 2016, 07:05 AM
Hello Hakem,

For this scenario you would need to pass new instance of DialogParameters with the required properties set to the RadWindow.Confirm static method as shown below:

RadWindow.Confirm(new DialogParameters
{
    Header = "Header Text",
    Content = "Content Text",
    Closed = ClosedEventHandler
});

Hope this helps.

Regards,
Kalin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Window
Asked by
haochen
Top achievements
Rank 1
Answers by
Kalin
Telerik team
haochen
Top achievements
Rank 1
Hakem
Top achievements
Rank 1
Share this question
or