Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaskorohodova committed Nov 28, 2023
1 parent c1ba574 commit 314b8a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1202789)
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
<!-- default badges end -->
# DevExtreme Examples Template
# DataGrid for DevExtreme - How to Validate Unchanged Cells

This is the repository template for creating new examples.
This example demonstrates how to validate unchanged cells in the DataGrid component on button click. To implement this functionality, define the `validateVisibleRows` function:

Use **_Product_ for DevExtreme - _Task_** template for a title.
1. To trigger DataGrid [changes](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/editing/changes/), map an array of all [visible rows](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Methods/#getVisibleRows) into change objects and assign it to the changes property.

Describe the solved task in this section.
2. [Repaint](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Methods/#repaint) DataGrid.

Put a screenshot/gif that illustrates the result here.
3. Use **private** `getController` method to validate unchanged cells.

Then, add implementation details (steps, code snippets, and other technical information in a free form), or add a link to an existing document with implementation details.
![DataGrid with validated unchanged cells](/data-grid-validate-unchanged-cells.png)

If you want to validate unchanged cells after DataGrid is loaded, you can call the `validateVisibleRows` function in the [onContentReady](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#onContentReady) event handler.

## Files to Review

Expand All @@ -31,12 +33,6 @@ Then, add implementation details (steps, code snippets, and other technical info

## Documentation

- link
- link
- ...

## More Examples

- link
- link
- ...
- [editing.changes](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/editing/changes/)
- [getVisibleRows()](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Methods/#getVisibleRows)
- [onContentReady](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#onContentReady)
Binary file added data-grid-validate-unchanged-cells.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 314b8a6

Please sign in to comment.