Skip to content

Commit

Permalink
Merge pull request #1278 from IgniteUI/ganastasov/tree-grid-paging-topic
Browse files Browse the repository at this point in the history
Add tree grid paging topic
  • Loading branch information
kacheshmarova committed Jun 5, 2024
2 parents 584d5bb + bcf4813 commit f033c1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions doc/en/components/grids/_shared/paging.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following example represents `{ComponentName}` pagination and exposes the op
<!-- end: Angular -->

```razor
<{ComponentSelector} @ref=grid Width="100%" Height="500px" Data=marketData DisplayDensity="DisplayDensity.Cosy">
<{ComponentSelector} @ref=grid Width="100%" Height="500px" Data=Data DisplayDensity="DisplayDensity.Cosy">
<IgbPaginator PerPage="10"></IgbPaginator>
</{ComponentSelector}>
```
Expand Down Expand Up @@ -102,12 +102,13 @@ The `Paginator` component is used along with the `{ComponentName}` component in
<!-- end: Angular -->

```razor
<{ComponentSelector} @ref=grid Data=marketData DisplayDensity="DisplayDensity.Compact">
<{ComponentSelector} @ref=grid Data=Data DisplayDensity="DisplayDensity.Compact">
<IgbPaginator Page="grid.Page" TotalRecords="grid.TotalRecords" PerPage="10" DisplayDensity="grid.DisplayDensity">
</IgbPaginator>
</{ComponentSelector}>
```

<!-- WebComponents -->
```html
<{ComponentSelector} id="grid">
<igc-paginator id="paginator" per-page="10">
Expand All @@ -117,7 +118,7 @@ The `Paginator` component is used along with the `{ComponentName}` component in

```ts
constructor() {
var grid = this.grid = document.getElementById('grid') as IgcGridComponent;
var grid = this.grid = document.getElementById('grid') as {ComponentName};
var paginator = this.paginator = document.getElementById('paginator') as IgcPaginatorComponent;
const selectOptions = [5, 15, 20, 50];
grid.data = this.data;
Expand All @@ -127,6 +128,7 @@ constructor() {
paginator.displayDensity = grid.displayDensity;
}
```
<!-- end: WebComponents -->

```tsx
const selectOptions = [5, 15, 20, 50];
Expand Down Expand Up @@ -395,7 +397,7 @@ Don't forget to include the themes in the same way as it was demonstrated above.

## Additional Resources

<!-- ComponentStart: Grid -->
<!-- ComponentStart: Grid, TreeGrid -->

<!-- * [Paginator](../paginator.md) -->
* [Virtualization and Performance](virtualization.md)
Expand All @@ -406,7 +408,8 @@ Don't forget to include the themes in the same way as it was demonstrated above.
* [Column Pinning](column-pinning.md)
* [Column Resizing](column-resizing.md)
* [Selection](selection.md)
<!-- ComponentEnd: Grid -->

<!-- ComponentEnd: Grid, TreeGrid -->

Our community is active and always welcoming to new ideas.

Expand Down
4 changes: 2 additions & 2 deletions docfx/en/components/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,10 @@
"status": ""
},
{
"exclude": ["Angular", "React", "WebComponents", "Blazor"],
"exclude": ["Angular"],
"name": "Paging",
"href": "grids/tree-grid/paging.md",
"status": ""
"status": "NEW"
},
{
"exclude": ["Angular", "React", "WebComponents", "Blazor"],
Expand Down

0 comments on commit f033c1e

Please sign in to comment.