Adding new command button to the Kendo Grid Toolbar command factory

1 Answer 32 Views
Grid Toolbar
Noah
Top achievements
Rank 1
Noah asked on 06 Mar 2024, 02:53 PM

Is it possible to extend the Telerik MVC Grid toolbar to include custom commands? I'm looking to add my own functionality to the toolbar, and I'm wondering if there's a way to create a method within the toolbar command factory to generate buttons with specific functionality that I want to apply across all grids in my application.

For example, I have these three methods I have added using the toolbar template.


instead of using the template every time I would like to add custom command like save or excel.

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 11 Mar 2024, 08:41 AM

Hello Noah,

Thank you for the image and the details provided.

The Save and Excel commands are built-in and can be used without a Template.

Here is the demo for Excel Export:

In the demo above, the Excel button is implemented as follows:

.ToolBar(tools => tools.Excel())
Here is the Batch Edit demo with a Save button:

The Save button in the demo above is implemented as follows:

    .ToolBar(toolbar => {
        toolbar.Create();
        toolbar.Save();        
    })
I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

Tags
Grid Toolbar
Asked by
Noah
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or