Pivot Grid Datasource, can JSON be used?

1 Answer 444 Views
PivotGrid
Gedalya
Top achievements
Rank 1
Gedalya asked on 30 Aug 2021, 05:04 PM
I'm struggling to get a Pivot Grid to populate. The demo works fine locally; however the datasource for it is XML from the datacube/dll. I have been using other widgets successfully with data delivered as JSON; is it possible to use JSON for the Pivot Grid? Are there any examples of this or even other examples of a Pivot Grid aside from the demo? Thanks in advance. 

1 Answer, 1 is accepted

Sort by
1
Accepted
Georgi Denchev
Telerik team
answered on 02 Sep 2021, 08:30 AM

Hello, Gedalya,

Yes, it is possible to bind the PivotGrid to JSON data.

You can check the Local Binding demo which uses a JSON file:

https://demos.telerik.com/kendo-ui/pivotgrid/local-flat-data-binding

The file can be viewed here:

https://demos.telerik.com/kendo-ui/content/shared/js/products.js  

The rest of the configuration would be the same as any other widget. If we take the Remote Data Binding demo as an example, you need to simply change the dataSource type to "json" and configure the Read endpoint to return the data in JSON format(as shown above).

Best Regards,
Georgi Denchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

cirol
Top achievements
Rank 1
commented on 02 Sep 2021, 03:53 PM | edited

Hi George, i finally manage to separate the action that render the grid/pivot from the action that "loads" those components (via datasource). That action was the same in the original architecture, so i change that

Thanks for your help!

Gedalya
Top achievements
Rank 1
commented on 03 Sep 2021, 03:11 PM

Thanks George! This was what I needed!
Tags
PivotGrid
Asked by
Gedalya
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Share this question
or