We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Enabling/Disabling Edit menu BarItems in a Form

Hi, We have several MDI child forms with lot (50-100) of textboxes, comboboxes, etc. I would like to provide Edit->cut/copy/Paste menus in my main form's main menu. I would like to enable/disable these BarItems when text is selected or copied into clipboard. Is there a better way than registering for text selected for each textbox and enable/disable? What is the efficient way of achieving this? thanks, - Reddy

1 Reply

RP Ramesh Praveen Syncfusion Team March 20, 2003 01:26 PM

Hi, You could listen to the BeforePopup event of the parent and update the state of the baritems there. But, note that if you provide shortcuts then the Click will be fired when the user keys that shortcut without any notification. We will be adding support for Command Updates via UpdateCommandUI events in a future version, soon. Regards, Praveen Ramesh

Loader.
Live Chat Icon For mobile
Up arrow icon