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

Supplying a title in radalert

4 Answers 207 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 30 Apr 2008, 10:42 AM
You know what would be nice? To be able to specify a title for a radalert box without having to specify the window sizes.

  radalert("You are doing it wrong", "Warning");


It'd be nice to just leave radalert to figure out the best size.

Just a thought

--
Stuart

4 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 30 Apr 2008, 11:20 AM
Hi Stuart,

You can do this by providing null for the width and the height arguments, e.g.
radalert("message",nul,null,"title");


I hope this helps.

All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dan
Top achievements
Rank 1
answered on 30 Apr 2008, 01:05 PM
Cheers Georgi

--
Stuart
0
Elias
Top achievements
Rank 2
answered on 03 Apr 2013, 08:03 PM
What will be the script or command to change the titlebar icon?
0
Marin Bratanov
Telerik team
answered on 05 Apr 2013, 01:16 PM
Hi Elias,

There is no build-in parameter in the command to change the icon, yet you can use some JavaScript to change it after showing the alert by using RadWindow's client-side API:
var oAlert = radalert("warning");
oAlert.set_iconUrl("images/myIcon.jpg");



Greetings,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Dan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Dan
Top achievements
Rank 1
Elias
Top achievements
Rank 2
Marin Bratanov
Telerik team
Share this question
or