<kendo:grid-toolbar>

If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole grid Toolbar, and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Grid Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the grid's Toolbar. Commands can be custom or built-in ("cancel", "create", "save", "excel", "pdf").The "cancel" built-in command reverts any data changes done by the end user.The "create" command adds an empty data item to the grid.The "save" command persists any data changes done by the end user. When executed fires saveChanges grid event.The "excel" command exports the grid data in MS Excel format. Fires excelExport grid event.The "pdf" command exports the grid data in PDF format. Fires pdfExport grid event.The "search" command renders the built-in search panel for the grid.The "columns" command renders a global column menu.The "columns" command generates a button to open a global columns menu.The "paste" command enables the user to switch between the "replace" and "insert" modes of the paste functionality. The allowPaste configuration must enabled for the dropdown to appear.

Example

<kendo:grid>
    <kendo:grid-toolbar></kendo:grid-toolbar>
</kendo:grid>

Configuration Attributes

Configuration JSP Tags

kendo:grid-toolbarItem

If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole grid Toolbar, and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Grid Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the grid's Toolbar. Commands can be custom or built-in ("cancel", "create", "save", "excel", "pdf").The "cancel" built-in command reverts any data changes done by the end user.The "create" command adds an empty data item to the grid.The "save" command persists any data changes done by the end user. When executed fires saveChanges grid event.The "excel" command exports the grid data in MS Excel format. Fires excelExport grid event.The "pdf" command exports the grid data in PDF format. Fires pdfExport grid event.The "search" command renders the built-in search panel for the grid.The "columns" command renders a global column menu.The "columns" command generates a button to open a global columns menu.The "paste" command enables the user to switch between the "replace" and "insert" modes of the paste functionality. The allowPaste configuration must enabled for the dropdown to appear.

More documentation is available at kendo:grid-toolbarItem.

Example

<kendo:grid-toolbar>
    <kendo:grid-toolbarItem></kendo:grid-toolbarItem>
</kendo:grid-toolbar>
In this article
Not finding the help you need?