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.
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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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")
{
MySave();
args.Handled = true; // barItem.Click event will not be raised
}
};

Thanks!
Andrew

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.

Thanks,
Rajasekar

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

;