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

BarItem name

Thread ID:

Created:

Updated:

Platform:

Replies:

89001 Aug 16,2009 07:15 PM UTC Aug 21,2009 05:40 AM UTC Windows Forms 1
loading
Tags: Tools
Peter Trevor
Asked On August 16, 2009 07:15 PM UTC

Is there any way to get a BarItem's Name? I have a common menu item click event sink which receives the BarItem as a generic object. I want to be able to identify which BarItem was clicked but when I cast the object back into a BarItem it's Name property doesn't seem to be available.

Nandakumar R [Syncfusion]
Replied On August 21, 2009 05:40 AM UTC

Hi,

Thanks for the details.

You cannot get the name of the BarItem as that is not exposed. But you can get the Tag or Text property of the BarItem. To raise the events, please refer to the below sample.

http://www.syncfusion.com/uploads/redirect.aspx?file=F89001_BarItems_5ca3cf09.zip&team=support

Note:
The ParentBarItem click event will be fired only when the ParentStyle of it is DropDown. This sample also explains various options in this.

If this does not address your problem, please update a sample or modify this sample, so that we will be able to update this issue with more details after analysis.

Regards,
Nanda

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

;