JavaScript Data GridTool Panels

Enterprise

This section covers Tool Panels, available via the grid's Side Bar, which allow for easy access to powerful grid operations such as grouping, pivoting, and filtering. Custom Tool Panels can also be provided to the grid.

Overview

Tool Panels are panels that sit in the Side Bar to the right of the grid. The Side Bar allows access to the tool panels via buttons that work like tabs. The Side Bar and a Tool Panel are shown in the screenshot below.

Side Bar

Provided Tool Panels

The grid provides the following Tool Panels:

Custom Tool Panels

In addition to the provided Tool Panels, it is also possible to provide custom Tool Panels.

For more details refer to the section: Custom Panel.

API

The gridApi has the following methods that can be used to interact with the tool panel.

openToolPanel
Function
Opens a particular tool panel. Provide the ID of the tool panel to open.
closeToolPanel
Function
Closes the currently open tool panel (if any).
getOpenedToolPanel
Function
Returns the ID of the currently shown tool panel if any, otherwise null.
isToolPanelShowing
Function
Returns true if the tool panel is showing, otherwise false.
refreshToolPanel
Function
Force refreshes all tool panels by calling their refresh method.
getToolPanelInstance
Function
Gets the tool panel instance corresponding to the supplied id.

Events

The following events are emitted from the tool panel.

toolPanelVisibleChanged
ToolPanelVisibleChangedEvent
The tool panel visibility has changed. Fires twice if switching between panels - once with the old panel and once with the new panel.
toolPanelSizeChanged
ToolPanelSizeChangedEvent
The tool panel size has been changed.
columnMenuVisibleChanged
ColumnMenuVisibleChangedEvent
The column menu visibility has changed. Fires twice if switching between tabs - once with the old tab and once with the new tab.
contextMenuVisibleChanged
ContextMenuVisibleChangedEvent
The context menu visibility has changed (opened or closed).

Next Up

Before covering the Tool Panels in detail, continue to the next section to learn about the Side Bar.