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

How to display data from an XML file using kendo Grid Control

4 Answers 385 Views
Grid
This is a migrated thread and some comments may be shown as answers.
A R
Top achievements
Rank 1
A R asked on 06 Oct 2012, 07:11 PM
Hi

I want to display the data in  a grid format from a data source(i.e. XML file) using Kendo Grid UI.

Pls send some solution for this.

Thanks 
A R

4 Answers, 1 is accepted

Sort by
0
Hari
Top achievements
Rank 1
answered on 07 Dec 2012, 05:30 PM
Hi,
We wanted to do the same thing. were you able to resolve your issue?
0
Vladimir Iliev
Telerik team
answered on 12 Dec 2012, 12:44 PM
Hi,

 
Basically you can bind the dataSource of the Grid to XML data as shown in this demo. For convenience I created small demo of Grid binding to XML data and attached it to the current thread.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Karunanithi
Top achievements
Rank 1
answered on 05 Apr 2019, 06:42 PM

Hi, I am able to bind with my local XML file but when I trying to load XML from online public ur https://grants.nih.gov/web_services/XML/NIBIB_Sponsored_FOAs.xml, not binding with grid. i am using the following code

 

transport: {
// specify the XML file to read. The same as read: { url: "books.xml" }
read: "NIBIB_Sponsored_FOAs.xml"
// read: { url: "https://grants.nih.gov/web_services/XML/NIBIB_Sponsored_FOAs.xml" }
},

0
Tsvetina
Telerik team
answered on 10 Apr 2019, 12:16 PM
Hello Karunanithi,

When I tried binding to the data from this link, I got the following error:
Access to XMLHttpRequest at 'https://grants.nih.gov/web_services/XML/NIBIB_Sponsored_FOAs.xml' from origin 'https://runner.telerik.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This means that the web server where this XML is hosted does not allow CORS (cross-origin resource sharing). If your code does not run on the same domain, you won't be able to read the XML unless the server is configured to allow CORS.

Regards,
Tsvetina
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
A R
Top achievements
Rank 1
Answers by
Hari
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Karunanithi
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or