This is a migrated thread and some comments may be shown as answers.

Toolbar Template with Tag Helper

1 Answer 409 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Veteran
Johannes asked on 03 Jul 2020, 03:56 AM

I'm trying to create a toolbar with a dropdown menu in my grid, similar to the demo shown here: https://demos.telerik.com/aspnet-core/grid/toolbar-template.

I can not find any information on doing it with tag helpers.

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 07 Jul 2020, 11:41 AM

Hi Johannes,

At present, the toolbar template is not available with the TagHelpers of the Telerik UI Grid. I encourage you to vote for this item in our feedback portal so that it gains popularity and gets implemented in any of the upcoming versions. 

As a temporary workaround, you can plug the whole template inside a bottom and achieve the same functionality:

<toolbar>
    <toolbar-button template="myTemplate"></toolbar-button>
</toolbar>

function myTemplate(e) {
    return "<button id='1'>btn 1</button> <button id='2'>btn 2</button>";
}

I hope you find this helpful.

 

Best regards,
Tsvetomir
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Johannes
Top achievements
Rank 1
Veteran
Answers by
Tsvetomir
Telerik team
Share this question
or