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

Data Binding RadChart

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.

Many business applications rely on database data, for example MS SQL, Oracle, MySQL, Access ODBC as well as XML data and business objects in multiple-tier scenarios. RadChart allows automatic binding to all of these using either standard Microsoft supplied data source controls SqlDataSource, AccessDataSource, XmlDataSource and ObjectDataSource or any DataSourceControl implementation. The end result is shown in the chart immediately at design-time.

You can also bind RadChart to a data source that implements one of the following interfaces:

  • IEnumerable:Supports simple iteration of a collection. See the MSDN article for more on IEnumerable.

  • ICollection: Extends IEnumerable and supports size, enumerator, and synchronization methods for collections.

  • IList: Extends ICollection and is the base class for lists.

  • IBindingList: Extends IList an supports binding to a data source.

  • IListSource: Provides functionality to an object to return a list that can be bound to a data source.

Some of the implementations of these interfaces include:

You can also bind to XML data through an XMLDataSource or directly to an XML file.

Once you have the data source defined you can use the RadChart Wizard, Property Editor or code for selecting which data columns will be used to populate the chart. The key properties for binding to a data source are:

See Also

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