4 Answers, 1 is accepted
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?
We wanted to do the same thing. were you able to resolve your issue?
0
Hi,
Vladimir Iliev
the Telerik team
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.
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

Naga
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
Hello Karunanithi,
When I tried binding to the data from this link, I got the following error:
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
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.