How can I add a new a toolbar item as a Dropdown

Posted by: durim on 22 July 2024, 6:02 am EST

    • Post Options:
    • Link

    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

    Viewer_DropDown.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels