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

[Solved] Changing radalert Icon

1 Answer 374 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark McCormack
Top achievements
Rank 1
Mark McCormack asked on 03 Jun 2008, 08:20 AM
Hello,

I was wondering if someone could attach an example of how I can change the icon of a radalert object. I have looked at the WIndow_DynamicTemplate example project, but for the life of me, I can't even get it to run.

I am using the method to call my radalert from within an AJAX.NET update panel if that helps anyone.
I am also calling radalert from my code-behind as such:
Dim scriptstring As String = "radalert('<b>" + Message + "</b>!', 200, 210, '" + messageType.ToString + "');" 
ScriptManager.RegisterStartupScript(MeMe.[GetType](), "radalert", scriptstring, True

And the error messages I get when trying to run the sample project are as follows:
Error 2 Could not load type 'RadWindow1.Window_DynamicTemplate._Default'. C:\Documents and Settings\walkem\Desktop\057032_Window_DynamicTemplate\Window_DynamicTemplate\Default.aspx 2 

Error 3 Could not load type 'RadWindow1.Window_DynamicTemplate.AlertTemplate1'. C:\Documents and Settings\walkem\Desktop\057032_Window_DynamicTemplate\Window_DynamicTemplate\AlertTemplate.ascx 1 

And 1 warning:
Warning 4 Attribute 'Codebehind' in the @ Page directive is no longer supported. Convert this page to the new code-behind model by opening the Web site (project) containing the page in Visual Web Developer. C:\Documents and Settings\walkem\Desktop\057032_Window_DynamicTemplate\Window_DynamicTemplate\Default.aspx 2 24 C:\...\Window_DynamicTemplate\

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 03 Jun 2008, 03:26 PM
Hi Mark,

It seems that you have tried to run the code from a sample which was created for Visual Studio 2003 / ASP.NET v1.x. For convenience I have attached to this thread a modified version for RadWindow for ASP.NET AJAX.

If you only want to change the image in the alert dialog however, you can simply provide your own template in the RadWindowManager's declaration. You can see the original alerttemplate by examining the HTML dump of a page with a RadWindowManager in it - use it as a base and extend it further to fit your requirements.



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Mark McCormack
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or