Posted 22 July 2024, 6:02 am EST
Hello there,
I searched everywhere to find a solution about adding a custom item as a dropdown to the toolbar but could not find it. Anybody could help?
thanks a lot
Forums Home / ActiveReports / ActiveReportsJS
Posted by: durim on 22 July 2024, 6:02 am EST
Posted 22 July 2024, 6:02 am EST
Hello there,
I searched everywhere to find a solution about adding a custom item as a dropdown to the toolbar but could not find it. Anybody could help?
thanks a lot
Posted 23 July 2024, 2:09 am EST
Hi Durim,
Unfortunately, there’s no direct API in ActiveReportsJS to add a dropdown to the toolbar, you can use the ‘ReportViewer.Toolbar.addItem()’ method to only add a button to your toolbar.
However, you can modify the DOM at runtime to add your dropdown to the toolbar in your application.
Please find attached a sample of the implementation of the same.
Regards,
Anand