Skip to content

Commit

Permalink
DocGen 23_1 result
Browse files Browse the repository at this point in the history
  • Loading branch information
dxrobot committed Jun 23, 2023
1 parent f0fbd57 commit d362c9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Data shaping is implemented by the [DataSource](/api-reference/30%20Data%20Layer/DataSource '/Documentation/ApiReference/Data_Layer/DataSource/') component and its methods. To call them, use the [getDataSource()](/api-reference/10%20UI%20Components/DataHelperMixin/3%20Methods/getDataSource().md '/Documentation/ApiReference/UI_Components/dxDataGrid/Methods/#getDataSource') method to get a **DataSource** instance from your UI component. Alternatively, you can use a standalone instance saved in a constant/component property when you created the **DataSource**.

[note] The **getDataSource()**.[load()](/Documentation/ApiReference/Data_Layer/DataSource/Methods/#load) method re-renders the component. To avoid this behavior, use **getDataSource()**.[store()](/Documentation/ApiReference/Data_Layer/DataSource/Methods/#store).[load()](/Documentation/ApiReference/Data_Layer/ArrayStore/Methods/#load) instead.
[note] The **getDataSource()**.[load()](/api-reference/30%20Data%20Layer/DataSource/3%20Methods/load().md '/Documentation/ApiReference/Data_Layer/DataSource/Methods/#load') method re-renders the component. To avoid this behavior, use **getDataSource()**.[store()](/api-reference/30%20Data%20Layer/DataSource/3%20Methods/store().md '/Documentation/ApiReference/Data_Layer/DataSource/Methods/#store').[load()](/api-reference/30%20Data%20Layer/Store/3%20Methods/load().md '/Documentation/ApiReference/Data_Layer/ArrayStore/Methods/#load') instead.

The following code obtains a **DataSource** instance using both approaches and calls one of the data shaping methods—[filter(filterExpr)](/api-reference/30%20Data%20Layer/DataSource/3%20Methods/filter(filterExpr).md '/Documentation/ApiReference/Data_Layer/DataSource/Methods/#filterfilterExpr'). Such methods only set up data shaping settings. To apply them, the [load()](/api-reference/30%20Data%20Layer/DataSource/3%20Methods/load().md '/Documentation/ApiReference/Data_Layer/DataSource/Methods/#load') method is called.

Expand Down

0 comments on commit d362c9c

Please sign in to comment.