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

RadDesktopAlert - OptionsButton

2 Answers 249 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Ramius
Top achievements
Rank 1
Ramius asked on 16 Jun 2010, 12:23 PM
Hello,

i have looked at the RadDesktopAlert - First Look Demo.

When i click on the OptionButton of a RadDesktopAlert then there are no options available.

Will it be possible to add a button to a RadDesktopAlert so that the user can click on that button and then a dialog of the application will be opended ? 

Kind Regards,

Ramius 

2 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 21 Jun 2010, 03:19 PM
Hello Ramius,

Thank you for contacting us and for your questions.

There are two approaches you can use to customize the content of the RadDesktopAlert by adding custom buttons. The first option is to use the OptionItems collection which displays menu items in a drop-down which is shown when clicking on the OptionsButton. Here is a code snippet that demonstrates how to add option items:

RadMenuItem optionItem = new RadMenuItem();
optionItem.Text = "Open Document";
optionItem.Click += new EventHandler(optionItem_Click);
this.radDesktopAlert1.OptionItems.Add(optionItem);

The other option is to use the ButtonItems collection which displays a strip of buttons at the bottom part of the alert. Here is a code snippet that demonstrates how to add buttons:
RadButtonElement buttonElement = new RadButtonElement("Alert Custom Button");
buttonElement.Click += new EventHandler(buttonElement_Click);
this.radDesktopAlert1.ButtonItems.Add(buttonElement);

I hope this helps.

Regards,
Deyan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ramius
Top achievements
Rank 1
answered on 22 Jun 2010, 10:12 AM
Hello Deyan,

thank you for your help.
I will test both versions.

Kind Regards,

Ramius
Tags
DesktopAlert
Asked by
Ramius
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Ramius
Top achievements
Rank 1
Share this question
or