Article relates to
RadControls for WinForms
Angel Kanchev, Telerik
August 13, 2007
Last modified by
The event handler DropDownMenuItem_Click() does the job here - the text of the DropDown button is set to the text of the clicked menu item.
Note that the subscription for Click must be synchronized with the menu items. If a menu item is added DropDownMenuItem_Click() must be added to its Click event. If a menu item is removed its Click event must be unsubscribed. For simplicity (and when the menu items are not too many) before modification of the menu items can be called UnsubscribeMenuItems() and after the modification - SubscribeMenuItems().
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.