The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there a way to make the buttons in the XPToolBar act like the toolbar buttons in Internet Explorer where when clicked, a little context menu is shown directly beneath the button? These buttons typically have a little down-arrow next to the image to indicate to the user that a dropdown context menu will be presented when clicked.
ADAdministrator Syncfusion Team March 11, 2003 10:59 AM UTC
Hi,
This is supported already. When you add bar items through the designer into the XPToolBar through the Collection Editor, you can select a ParentBarItem type instead of the default BarItem type. Then set this ParentBarItem type's ParentStyle to DropDown. You can also add child BarItems into this ParentBarItem to fill the dropdown.
Regards,
Praveen Ramesh
TAThomas A. Anderson, Program WriterMarch 11, 2003 01:36 PM UTC
Thank you. What if the contents of the dropdown won't be known until the parent barItem is actually clicked? In other words, the "child" barItems would need to be generated at runtime.
ADAdministrator Syncfusion Team March 11, 2003 06:43 PM UTC
Hi,
You could listen to the ParentBarItem's Popup event and add BarItems if necessary and then remove them in the PopupClosed event handler.
Regards,
Praveen Ramesh