You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/grid/toolbar.md
+75-4Lines changed: 75 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,18 @@ position: 30
10
10
11
11
# Grid Toolbar
12
12
13
-
The grid provides a toolbar where you can add a variety of actions that are not tied to a concrete row:
13
+
The grid provides a toolbar where you can add a variety of actions that are not tied to a concrete row.
14
+
15
+
To use a toolbar, define the `GridToolBar` tag of the grid. In it, you can use arbitrary HTML and components to get the desired layout, and also `GridCommandButton` instances in (you can read more about the features available in those buttons in the [Command Column]({%slug components/grid/columns/command%}) article).
16
+
17
+
>note The toolbar is not associated with an item from the data source. The `Item` field on the click event handler argument of a `GridCommandButton` will always be `null` and the `Edit`, `Update`, `Cancel` commands do not work with it.
18
+
19
+
In this article, you will learn how to use:
14
20
15
21
*[Built-in Commands](#built-in-commands)
16
22
*[Custom Commands](#custom-commands)
23
+
*[Custom Layout](#custom-layout)
17
24
18
-
To use a toolbar, define `GridCommandButton` instances in the `GridToolBar` tag of the grid. You can read more about the features available in those buttons in the [Command Column]({%slug components/grid/columns/command%}) article.
19
-
20
-
>note The toolbar is not associated with an item from the data source. The `Item` field on the click event handler argument will always be `null` and the `Edit`, `Update`, `Cancel` commands do not work with it.
21
25
22
26
## Built-in Commands
23
27
@@ -140,6 +144,73 @@ You can use the toolbar to add buttons that invoke actions specific to your appl
140
144
141
145

142
146
147
+
## Custom Layout
148
+
149
+
You can add your own HTML and components to create a more complex layout in the grid header to match your business needs. You can still use the grid command buttons, as well as other components and logic.
0 commit comments