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
@@ -43,6 +47,8 @@ You can configure the Toolbar and include any of the built-in commands:
43
47
| Pdf | Exports the grid data in PDF format.|[PDF Export documentation]({% slug pdfexport_gridhelper_aspnetcore %})|
44
48
| Excel | Exports the grid data in MS Excel format.|[Excel Export documentation]({% slug excelexport_gridhelper_aspnetcore %})|
45
49
| Search | Adds the built-in search panel for the Grid.|[Search Panel documentation]({% slug htmlhelpers_grid_aspnetcore_searchpanel %})|
50
+
| Spacer | Moves the tools that are declared after it to the right side of the ToolBar.||
51
+
| Separator | Acts as a delimiter between the ToolBar commands.||
46
52
47
53
## Custom Commands
48
54
@@ -82,6 +88,98 @@ The following example demonstrates how to add a custom command to the Toolbar:
82
88
```
83
89
{% endif %}
84
90
91
+
As of {{site.product}} R3 2023 SP1 you can use the [Template component]({% slug htmlhelpers_overview_template %}) to define custom ToolBar commands, alongside the default ToolBar commands.
92
+
93
+
The following example demonstrates how you can add a Button and DropDownList components to the Grid's Toolbar, along with a default `Excel` command:
The {{site.product}} Grid also supports using a template for the Toolbar. You can define a template by using the [`ClientTemplate()`](/api/kendo.mvc.ui.fluent/gridtoolbarcommandfactory#clienttemplatesystemstring) or the [`ClientTemplateid()`](/api/kendo.mvc.ui.fluent/gridtoolbarcommandfactory#clienttemplateidsystemstring) configuration options.{% if site.core %} For TagHelper Grid configuration use the `client-template` or `client-template-id` properties.
@@ -167,6 +265,89 @@ When you use a Toolbar Template, and you also want to use a built-in command, th
167
265
```
168
266
{% endif %}
169
267
268
+
{% if site.mvc %}
269
+
### Server-side rendering of the ToolBar Template
270
+
271
+
Rendering of the Toolbar on the server is supported via the [`.Template()`](/api/kendo.mvc.ui.fluent/gridtoolbarcommandfactory#templatesystemaction) configuration. The following example demonstrates how to define a server-side ToolBar Template:
Copy file name to clipboardExpand all lines: docs/knowledge-base/grid-remove-filter-row-operators.md
+6-12
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,13 @@ How can I remove or hide the drop-down with the filter operators when the row fi
28
28
29
29
## Solution
30
30
31
-
The Grid provides no built-in functionality for disabling the button with the filter operators for all cells in row filtering mode. However, you can use a workaround to hide the button by applying the following CSS rules:
31
+
The Grid provides no built-in functionality for disabling the button with the filter operators for all cells in row filtering mode. However, you can use a workaround to hide the button by applying the following jQuery logic:
32
32
33
-
```css
34
-
th [role="listbox"]{
35
-
visibility: hidden;
36
-
}
33
+
```
34
+
$('td span.k-dropdown-operator').remove();
37
35
```
38
36
39
-
The following example demonstrates the complete implementation of the suggested approach.
37
+
The following example demonstrates the complete implementation of the above approach.
40
38
41
39
```dojo
42
40
<div id="grid"></div>
@@ -103,12 +101,8 @@ The following example demonstrates the complete implementation of the suggested
0 commit comments