Skip to content
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

DocGen 22_2 [06/23/23] #5243

Merged
merged 1 commit into from
Jun 23, 2023
Merged
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
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