Border and Background Color of Context Menu

2 posts, 0 answers
  1. Curtis
    Curtis avatar
    65 posts
    Member since:
    Oct 2014

    Posted 24 Jan 2018 Link to this post

    Hello again folks.

    Can someone please show me how to edit the border and background colors of the DesktopAlert Context Menu that appears when the "Options" button is clicked?

    Thank you!



  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3626 posts

    Posted 25 Jan 2018 Link to this post

    Hello, Curtis,

    Thank you for writing.  

    Here is a sample code snippet demonstrating how to customize the border and fill color for the options menu in RadDesktopAlert
    RadDropDownMenuElement menuElement = this.radDesktopAlert1.Popup.AlertElement.CaptionElement.TextAndButtonsElement.OptionsButton.DropDownMenu.PopupElement as RadDropDownMenuElement;
       menuElement.Border.ForeColor = Color.Red;
       menuElement.Fill.BackColor = Color.Yellow;

    I hope this information helps. Should you have further questions I would be glad to help. 
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top