-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
734de80
commit 0f348fe
Showing
1 changed file
with
9 additions
and
17 deletions.
There are no files selected for viewing
26 changes: 9 additions & 17 deletions
26
concepts/05 UI Components/PivotGrid/030 Data Binding/20 Bind Data.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
Regardless of the approach you've chosen to provide data, after implementing a data source, bind it to the PivotGrid UI component using the [dataSource](/api-reference/10%20UI%20Components/GridBase/1%20Configuration/dataSource.md '/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#dataSource') property as demonstrated below. | ||
After selecting a data source method, connect it to the PivotGrid UI component with the [dataSource](/api-reference/10%20UI%20Components/GridBase/1%20Configuration/dataSource.md '/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#dataSource') property as shown in the following demos: | ||
|
||
It is also recommended that you declare the [fields](/api-reference/30%20Data%20Layer/PivotGridDataSource/1%20Configuration/fields '/Documentation/ApiReference/Data_Layer/PivotGridDataSource/Configuration/fields/') array and describe data from the DataSource for the PivotGrid UI component there. | ||
|
||
<!--JavaScript-->var pivotGridDataSource = { | ||
store: { | ||
//... | ||
}, | ||
fields: [{ | ||
//... | ||
}, | ||
//... | ||
], | ||
}; | ||
|
||
var dxPivotGridOptions = { | ||
dataSource: pivotGridDataSource | ||
}; | ||
#include common-demobutton-named with { | ||
url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/PivotGrid/SimpleArray/", | ||
name: "Bind an Array" | ||
} | ||
#include common-demobutton-named with { | ||
url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/PivotGrid/OLAPDataSource/", | ||
name: "Bind an OLAP Service" | ||
} |