toolbar.items

An array collection of items to be rendered in the toolbar. Each item 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 "canceledit" command cancels the changes to the dataItem that is being currenly edited.

  • The "update" command save the changes to the dataItem that is being currenly edited.

  • The "destroy" command removes the selected item. To work as expected, the grid should be selectable. If multiple selection is enabled, the item which will be remoed is the last selected one.

  • The "edit" command triggers the edit state of currently selected item. To work as expected, the grid should be selectable. If multiple selection is enabled, the item which will be edited is the last selected one.

  • 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.

  • The "sort" command enables the user to use the sorting functionallity of the grid.

  • The "filter" command enables the user to use the filtering functionallity of the grid.

  • The "group" command enables the user to use the grouping functionallity of the grid.

  • The "columnChooser" command enables the user to change the visibillity of the grid's columns.