Skip to content

Commit 4edd697

Browse files
committed
[no ci] [Doc] Add Working with Dates section to DatagridAG docs
1 parent e73c8d8 commit 4edd697

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/DatagridAG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,13 @@ export const PostList = () => {
13261326
```
13271327
{% endraw %}
13281328

1329+
### Working with Dates
1330+
1331+
When using `DatagridAG` with dates, [the `ag-grid` documentation](https://www.ag-grid.com/react-data-grid/cell-data-types/#date) states that:
1332+
1333+
> The default Value Parser and Value Formatter use the ISO string format 'yyyy-mm-dd'.
1334+
> If you wish to use a different date format, then you can [Override the Pre-Defined Cell Data Type Definition](https://www.ag-grid.com/react-data-grid/cell-data-types/#overriding-the-pre-defined-cell-data-type-definitions).
1335+
13291336
### Enabling Full Row Edition
13301337

13311338
By default, editing is enabled on cells, which means you can edit a cell by double-clicking on it, and it will trigger a call to the dataProvider's `update` function.
@@ -2739,6 +2746,13 @@ export const PostList = () => {
27392746
```
27402747
{% endraw %}
27412748

2749+
### Working with Dates
2750+
2751+
When using `DatagridAG` with dates, [the `ag-grid` documentation](https://www.ag-grid.com/react-data-grid/cell-data-types/#date) states that:
2752+
2753+
> The default Value Parser and Value Formatter use the ISO string format 'yyyy-mm-dd'.
2754+
> If you wish to use a different date format, then you can [Override the Pre-Defined Cell Data Type Definition](https://www.ag-grid.com/react-data-grid/cell-data-types/#overriding-the-pre-defined-cell-data-type-definitions).
2755+
27422756
### Enabling Infinite Pagination
27432757

27442758
By default, `<DatagridAGClient>` renders pagination controls at the bottom of the list. You can disable these controls to switch to an infinite pagination mode, where the grid shows the next rows on scroll. Thanks to [ag-grid's DOM virtualization](https://www.ag-grid.com/react-data-grid/dom-virtualisation/), this mode causes no performance problem.

0 commit comments

Comments
 (0)