RadDesktopAlert - OptionsButton

3 posts, 0 answers
  1. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 16 Jun 2010 Link to this post

    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. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 21 Jun 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 22 Jun 2010 Link to this post

    Hello Deyan,

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

    Kind Regards,

    Ramius
Back to Top