-
Notifications
You must be signed in to change notification settings - Fork 77
[On hold] docs(Grid): add filter, sort and group tools #2945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -25,6 +25,9 @@ The [Blazor Grid](https://demos.telerik.com/blazor-ui/grid/overview) provides se | |||||
| Add | `GridToolBarAddTool` | An add command that fires the [`OnAdd` event](slug:grid-editing-overview#events). | | ||||||
| CsvExport | `GridToolBarCsvExportTool` | An export command for CSV files that fires the [`OnBeforeExport` event](slug:grid-export-events#onbeforeexport). | | ||||||
| ExcelExport | `GridToolBarExcelExportTool` | An export command for Excel files that fires the [`OnBeforeExport` event](slug:grid-export-events#onbeforeexport). | | ||||||
| Filter | `GridToolBarFilterTool` | A toggle button in the Grid’s toolbar that opens a filter interface. On desktop screens, it displays a popup with a filter menu; on mobile devices, it renders as an `ActionSheet`. The component has two views: one for selecting the column to filter, and another for applying the filter to the selected column. The tool also exposes `Icon` parameter that allows you to override the default icon. | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| Group | `GridToolBarGroupTool` | A toggle button in the Grid’s toolbar that opens a popup listing the groupable columns — click a column to group by it. On mobile devices, the popup is rendered as an `ActionSheet`. The tool also exposes `Icon` parameter that allows you to override the default icon. | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our style guide recommends using the em dash without spaces on either side.
Suggested change
|
||||||
| Sort | `GridToolBarSortTool` | A toggle button in the Grid’s toolbar that opens a popup listing the sortable columns — click a column to sort by it. On mobile devices, the popup is rendered as an `ActionSheet`. The tool also exposes `Icon` parameter that allows you to override the default icon. | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| SearchBox | `GridToolBarSearchBoxTool` | A searchbox that filters multiple Grid columns simultaneously. | | ||||||
|
||||||
### Layout Tools | ||||||
|
@@ -52,7 +55,11 @@ Add a `<GridToolBar>` tag inside `<TelerikGrid>` to configure a toolbar, for exa | |||||
````RAZOR | ||||||
<TelerikGrid Data=@GridData | ||||||
EditMode="@GridEditMode.Inline" | ||||||
FilterMode="GridFilterMode.FilterMenu" | ||||||
Groupable="true" | ||||||
Sortable="true" | ||||||
Pageable="true" | ||||||
AdaptiveMode="AdaptiveMode.Auto" | ||||||
OnUpdate=@UpdateItem | ||||||
OnCreate=@CreateItem> | ||||||
<GridToolBar> | ||||||
|
@@ -72,6 +79,18 @@ Add a `<GridToolBar>` tag inside `<TelerikGrid>` to configure a toolbar, for exa | |||||
Export to Excel | ||||||
</GridToolBarExcelExportTool> | ||||||
|
||||||
<GridToolBarFilterTool> | ||||||
Filter | ||||||
</GridToolBarFilterTool> | ||||||
|
||||||
<GridToolBarSortTool> | ||||||
Sort | ||||||
</GridToolBarSortTool> | ||||||
|
||||||
<GridToolBarGroupTool> | ||||||
Group | ||||||
</GridToolBarGroupTool> | ||||||
|
||||||
<GridToolBarSpacerTool /> | ||||||
|
||||||
<GridToolBarSearchBoxTool /> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to use "adaptive mode" as an anchor leading to an article or a section dedicated to that topic.