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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to intercept and handle clicks on a particular BarItem?

Thread ID:





92849 Feb 8,2010 08:25 PM UTC Feb 12,2010 12:36 PM UTC ASP.NET Web Forms (Classic) 2
Tags: Tools
Administrator [Syncfusion]
Asked On February 8, 2010 08:25 PM UTC


Just wondering if it's possible to alter the behavior when user clicks on a particular bar item? I know how to get notification when a BarItem is clicked (MainFrameBarManager.ItemClicked), but it does not allow me to cancel the execution of the 'original' event handler.

For instance, it could be achieved by introducing the Handled property:

mainFrameBarManager.ItemClicked += (o, args) =>
if (args.ClickedBarItem.Text = "Save")
args.Handled = true; // barItem.Click event will not be raised


Administrator [Syncfusion]
Replied On February 9, 2010 03:35 PM UTC

Wrong forum, it should go to WinForms - can anyone move it there, please?

Rajasekar B [Syncfusion]
Replied On February 12, 2010 12:36 PM UTC

Hi Andrew,

Thank you for using syncfusion products.

In the current architecture we cannot cancel the baritem's click event. We have logged a feature request to add a property as you have suggested. This will be available in our future product releases. Let me know if you have any questions.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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