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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XPMenus: trigger UpdateUI

Thread ID:

Created:

Updated:

Platform:

Replies:

57835 Mar 12,2007 06:32 PM UTC Mar 28,2007 12:51 PM UTC WinForms 3
loading
Tags: Tools
Nelson Druding
Asked On March 12, 2007 06:32 PM UTC

Does anyone know of anyway of triggering the UpdateUI event without popping up a menu? I've got toolbars that are not being updated properly.

Murugan [Syncfusion]
Replied On March 12, 2007 11:08 PM UTC

Hi Nelson,

This could be achieved by calling PerformUpdateUI() method of BarItem class. Here is the code snippet

this.barItem1.PerformUpdateUI();

Please refer to the code snippet above and let me know if it helps you.

Thanks for using Syncfusion products.

Regards,
Murugan P.S

Nelson Druding
Replied On March 15, 2007 08:16 PM UTC

Thanks Murugan,

Is there anyway to trigger ALL the UpdateUI functions without calling them individually? I've got a syncfusion diagram that has various tools that are active based upon what elements are selected. I'd like to update all the toolbars whenever an item is selected. Any ideas?

Thanks,

-Nelson Drueding

>Hi Nelson,

This could be achieved by calling PerformUpdateUI() method of BarItem class. Here is the code snippet

this.barItem1.PerformUpdateUI();

Please refer to the code snippet above and let me know if it helps you.

Thanks for using Syncfusion products.

Regards,
Murugan P.S

Venugopal M [Syncfusion]
Replied On March 28, 2007 12:51 PM UTC

Hi Nelson,

You could trigger the UpdateUI event without popping up a menu. The UpdateUI event will be called when the following situation.

1.ParentBarItem hosting this BarItem is dropped-down.
2.When the BarItem is hosted in a toolbar.
3.When the application goes into an idle state.
4.When a shortcut corresponding to this item is about to be processed.

You can turn on this behavior throughout the menu structure by setting the BarManager.UpdateUIMFCStyle to True. For XPToolbars and ParentBarItems that are outside the scope of a BarManager, Set the UpdateUIMFCStyle property in those instances explicitly.

Please let me know if you have any queries.

Thanks for using Syncfusion Products.

Thanks,
Venugopal M.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;