telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.91k forks source link

Cannot define a custom toolbar item using the TagHelper Spreadsheet configuration #6184

Open PekoPPT opened 3 years ago

PekoPPT commented 3 years ago

Bug report

The current TagHelper implementation of the Spreadsheet doesn't allow a definition of a custom toolbar. What the user can define in the toolbar configuratio is to show selected pre-defined tools using a configuration like the following:

    <toolbar>
        <home >
            <tool name="open"></tool>
        </home>
    </toolbar>

In the Kendo UI for jQuery suite, we can define a custom toolbar as follows:

      $("#spreadsheet").kendoSpreadsheet({
        toolbar: {
          home:[
            {
              type: "button",
              text: "PDF",
              showText: "both",
              icon: "k-icon k-i-download",
              click: exportPdf
            }]
        }
      });

Reproduction of the problem

Here is a sample project in which the "Open file" tool is defined.

Current behavior

We cannot define a custom toolbar using the Spreadsheet tag helper.

Expected/desired behavior

The user should be able to define a custom toolbar using the Spreadsheet tag helper as it is possible in the Kendo UI for jQuery suite - https://dojo.telerik.com/alobigUQ

Environment

veselints commented 3 years ago

This is an Enhancement request (Feature request) and not a Bug report. Currently, none of the server-side wrappers (including MVC/Core HTML helpers and Core tag helpers) allows configuration of custom tools in the Spreadsheet. We have not implemented such functionality in the helpers. Hence, I am changing the Bug label to Enhancement.