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

Adding controls to the content

1 Answer 114 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 Jun 2012, 05:27 PM
Is there a way to do more content customization than simple HTML?

I'd like to be able to add controls and other types of complex content to the content area.

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 22 Jun 2012, 12:22 PM
Hi Robert,

Thank you for writing.

RadDesktopAlert is built by the same elements as all other controls. Therefore, you can add other elements to it as you want. Here is an example of how to add a button element:
RadButtonElement element = new RadButtonElement();
element.Text = "Button";
element.MaxSize = new Size(20, 20);
 
this.radDesktopAlert1.Popup.AlertElement.ContentElement.Children.Add(element);

I hope this will be useful. Should you have further questions, I would be glad to help.

Kind regards,
Ivan Petrov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
DesktopAlert
Asked by
Robert
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or