Skip to content

Update snippets for advanced filtering topic #1499

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

Open
wants to merge 2 commits into
base: vnext
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions doc/en/components/grids/_shared/advanced-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ constructor() {
```

```tsx
<IgrGrid data={nwindData} autoGenerate="false" ref={gridRef} allowAdvancedFiltering="true">
<IgrGrid data={nwindData} autoGenerate={false} ref={gridRef} allowAdvancedFiltering={true}>
<IgrGridToolbar></IgrGridToolbar>
</IgrGrid>
```
Expand All @@ -80,12 +80,6 @@ constructor() {
}
```

```tsx
<IgrTreeGrid data={nwindData} autoGenerate="false" allowAdvancedFiltering="true">
<IgrGridToolbar></IgrGridToolbar>
</IgrTreeGrid>
```

```razor
<IgbTreeGrid Data=data AutoGenerate="true" AllowAdvancedFiltering="true">
<IgbGridToolbar></IgbGridToolbar>
Expand Down Expand Up @@ -115,16 +109,35 @@ constructor() {
</IgbHierarchicalGrid>
```
<!-- ComponentEnd: HierarchicalGrid -->

<!-- ComponentStart: TreeGrid -->
```razor
<IgbTreeGrid Data=data AutoGenerate="true" AllowAdvancedFiltering="true">
<IgbGridToolbar></IgbGridToolbar>
</IgbTreeGrid>
```
<!-- ComponentEnd: TreeGrid -->

<!-- end: Blazor -->

<!-- React -->
<!-- ComponentStart: HierarchicalGrid -->
```tsx
<IgrHierarchicalGrid data={nwindData} autoGenerate="false" allowAdvancedFiltering="true">
<IgrHierarchicalGrid data={nwindData} autoGenerate={false} allowAdvancedFiltering={true}>
<IgrGridToolbar></IgrGridToolbar>
</IgrHierarchicalGrid>
```
<!-- ComponentEnd: HierarchicalGrid -->

<!-- ComponentStart: TreeGrid -->
```tsx
<IgrTreeGrid data={nwindData} autoGenerate={false} allowAdvancedFiltering={true}>
<IgrGridToolbar></IgrGridToolbar>
</IgrTreeGrid>
```
<!-- ComponentEnd: TreeGrid -->


<!-- end: React -->

The advanced filtering generates a `FilteringExpressionsTree` which is stored in the `AdvancedFilteringExpressionsTree` input property. You could use the `AdvancedFilteringExpressionsTree` property to set an initial state of the advanced filtering.
Expand Down