New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Data Binding RadChart to an XML file

RadChart has been deprecated since Q3 2014 and is no longer recommended for use, as it does not support modern browsers. We strongly recommend using RadHtmlChart, Telerik's modern client-side charting component. To transition from RadChart to RadHtmlChart, refer to the following migration articles:

Explore the RadHtmlChart documentation and online demos to determine how it fits your development needs.

To bind RadChart to XML data you can:

  1. Bind directly to the XML file itself programmatically at run-time.

  2. Bind to XML data by using an XMLDataSource at design-time.

Products.XML is used for both examples.The XML file is located in the same directory as the default page used to display it.

XML
<?xml version="1.0" encoding="utf-8" ?>
<Products>
<Product Name="Parka L" QuantityInStock="123"></Product>
<Product Name="Parka M" QuantityInStock="56"></Product>
<Product Name="Parka S" QuantityInStock="92"></Product>
<Product Name="Mittens" QuantityInStock="12"></Product>
</Products>				

See Also

In this article
See Also
Not finding the help you need?
Contact Support