Using a template to create custom item in the toolbar

4 posts, 0 answers
  1. Michelle
    Michelle avatar
    46 posts
    Member since:
    Feb 2015

    Posted 08 Jun 2017 Link to this post

    Is it possible to add a toolbar item using a template in the Spreadsheet widget, like you can with the regular Toolbar widget?

    Example: http://dojo.telerik.com/aPIha

    Thanks,

    Michelle

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1731 posts

    Posted 09 Jun 2017 Link to this post

    Hello Michelle,

    Here's a dojo example, which shows how you can add a custom toolbar item to the Spreadsheet's Home tab along three of the default tools.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Michelle
    Michelle avatar
    46 posts
    Member since:
    Feb 2015

    Posted 09 Jun 2017 Link to this post

    I am aware that I can add custom buttons into the toolbar, but my question is how can I add a custom label or drop down list control, which is typically achieved by using templates as demonstrated in the example I included.
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1731 posts

    Posted 09 Jun 2017 Link to this post

    Hello Michelle,

    You can use an approach similar to the one used in the ToolBar and set the custom tool's template option: dojo.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top