Skip to content

Commit

Permalink
PivotGrid: update Bind Data topic (#6770) (#6773)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaskorohodova authored Oct 30, 2024
1 parent 734de80 commit 0f348fe
Showing 1 changed file with 9 additions and 17 deletions.
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"
}

0 comments on commit 0f348fe

Please sign in to comment.