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

RadAlert on dynamic Content?

2 Answers 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ole Albers
Top achievements
Rank 2
Ole Albers asked on 21 Jan 2009, 09:27 AM
Hi there.

I'm trying to get radAlert running - with no afford until now. I read the KB-Article of radalert in CodeBehind but that didn't work with my scenario:

It's a simple  Emailsystem. There are multiple possible attachments which are shown as links:
 foreach (EmailContainerAttachment att in _currentEmail.Attachments) 
            { 
                int attId = att.Id;                 
                LinkButton attTxt = new LinkButton(); 
                attTxt.ID = string.Format("lnkAttachment[{0}]", attId); 
                attTxt.Text = att.FileName; 
                attTxt.Click += new EventHandler(openAttachment_click); 
                 
                txtMailAttachments.Controls.Add(attTxt); 
            } 
        } 

Finally: Here is the event-handler:
 void openAttachment_click(object sender, EventArgs e) 
        { 
            string scriptstring = "radalert('Welcome to Rad<b>window</b>!', 330, 210);"
            ScriptManager.RegisterStartupScript(thisthis.GetType(), "radalert", scriptstring, true);  
          //  throw new NotImplementedException(); 
        } 

Nothing happens here. :(

The event-handler is entered, but I got no alert-Window. BTW: A solution would also be if the Handler only is entered when an radConform-Window was confirmed true.

Any ideas?


2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 21 Jan 2009, 11:23 AM
Hello Ole,

Try using the Sys.Application.add_load() method for calling the alert dialog - you can see how to do this in the KB. If you still experience problems, please open a support ticket and send me a sample project that reproduces your setup and I will set the alert for you.


Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ole Albers
Top achievements
Rank 2
answered on 26 Jan 2009, 02:55 PM
I thought I had tested all KB-Versions. Looks like I missed that one.

Thanks. Worked.
Tags
Window
Asked by
Ole Albers
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Ole Albers
Top achievements
Rank 2
Share this question
or