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

Inserting BarItems programatically

All, I''m adding BarItems to a ParentBarItem in code, but would like them to appear in reverse order; i.e., "pushed down" not added to the bottom, stack-like. Using standard Windows.Forms, you could specify an index when adding a MenuItem to its parent, in this case 0 so the newest would always be on top. How can I accomplish the same affect using ParentBarItems and BarItems?

1 Reply

AD Administrator Syncfusion Team January 14, 2005 08:04 PM UTC

Hi Keith, I am afraid, the BarItems in XPMenus framework do not have a .NET MenuItem.Index like property. The order in which you add the BarItems to the ParentBarItem or the Bar determines the order in which they appear at runtime. However,we could consider this as a feature request for a future release of Essential Suite. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Live Chat Icon For mobile
Up arrow icon