Good day,
I have a couple of REST Services in my application. One specifically returns this data:
Sample:[ { "AnswerText": "sample string 1", "AnswerValue": 2.1, "EntryDateTime": "2017-07-06T09:27:38.5933208+02:00", "FormEntryId": "7d84785a-9ee9-4911-bf54-6afec99ea26c", "UserId": "29660401-272f-47fc-b3b6-c86fed354649", "QuestionFormId": "ec909cff-eea8-4469-9f36-ecb7a9919e87", "QuestionText": "sample string 7", "QuestionId": "35ffd723-6c72-4a48-9299-5dbb02376482", "AnswerId": "077c05e7-85bb-40dc-9654-5b0c46e9e8fc" }, { "AnswerText": "sample string 1", "AnswerValue": 2.1, "EntryDateTime": "2017-07-06T09:27:38.5933208+02:00", "FormEntryId": "7d84785a-9ee9-4911-bf54-6afec99ea26c", "UserId": "29660401-272f-47fc-b3b6-c86fed354649", "QuestionFormId": "ec909cff-eea8-4469-9f36-ecb7a9919e87", "QuestionText": "sample string 7", "QuestionId": "35ffd723-6c72-4a48-9299-5dbb02376482", "AnswerId": "077c05e7-85bb-40dc-9654-5b0c46e9e8fc" }
]
I am simply trying to do the following with the PivotGrid
I have a couple of REST Services in my application. One specifically returns this data:
Sample:
[
{
"AnswerText": "sample string 1",
"AnswerValue": 2.1,
"EntryDateTime": "2017-07-06T09:27:38.5933208+02:00",
"FormEntryId": "7d84785a-9ee9-4911-bf54-6afec99ea26c",
"UserId": "29660401-272f-47fc-b3b6-c86fed354649",
"QuestionFormId": "ec909cff-eea8-4469-9f36-ecb7a9919e87",
"QuestionText": "sample string 7",
"QuestionId": "35ffd723-6c72-4a48-9299-5dbb02376482",
"AnswerId": "077c05e7-85bb-40dc-9654-5b0c46e9e8fc"
},
{
"AnswerText": "sample string 1",
"AnswerValue": 2.1,
"EntryDateTime": "2017-07-06T09:27:38.5933208+02:00",
"FormEntryId": "7d84785a-9ee9-4911-bf54-6afec99ea26c",
"UserId": "29660401-272f-47fc-b3b6-c86fed354649",
"QuestionFormId": "ec909cff-eea8-4469-9f36-ecb7a9919e87",
"QuestionText": "sample string 7",
"QuestionId": "35ffd723-6c72-4a48-9299-5dbb02376482",
"AnswerId": "077c05e7-85bb-40dc-9654-5b0c46e9e8fc"
}] |
We suspect that your requirement is to display the PivotGrid control using data source obtained from the REST service. If so, you can simply render the PivotGrid using “$.ajax()” call in the load event. Please find the sample code snippet for your reference below.
CSHTML:
Meanwhile, we have prepared a simple PivotGrid sample with the provided data source for your reference. Please find the sample in the below link for your reference.
| ||||||||||||
I am simply trying to do the following with the PivotGrid
Any assistance in this would greatly be appreciated. The documentation on the PivotGrid does not provide me with the answers I am looking for and the Samples on this Control has so much going on, and there is no documentation on the classes and methods used, so I am flying blind. |
Please find the document details based on your requirements individually.
|