This is a migrated thread and some comments may be shown as answers.

Consume XML web service with KendoReact Grid?

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gregory
Top achievements
Rank 1
Gregory asked on 31 Jan 2020, 08:32 PM
Anyone know how I could consume an XML web service using a KendoReact Grid?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Feb 2020, 08:40 AM

Hello, Gregory,

The KendoReact Grid accepts only JSON data array.

In order of the Grid to display the data, it has to be converted to JSON.

There is a nice npm package that does that:

https://www.npmjs.com/package/xml-js

Also, a request has to be made in order to retrieve that XML data:

https://stackoverflow.com/questions/10684145/how-to-retrieve-xml-data-from-javascript

Please have in mind that the KendoReact components only visualize the data that they receive, the component does not make a request to different APIs to consume data. This is because in React there is a concept of the state as a single source of truth, and all data manipulation has to go through it.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Gregory
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or