New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Known Limitations

This article lists some of the known limitations of using the RadHtmlChart and presents some workarounds.

OnDataBound Server-side Event Is Not Available

RadHtmlChart does not implement the server-side OnDataBound event because it uses client-side data binding and rendering. This is a paradigm of the control itself and therefore the server-side OnDataBound event could not fit in the main concept of the RadHtmlChart.You can find more information in this Overview help article.

The OnDataBound event is present in the Intellisense because it is inherited from System.Web.UI.WebControls.WebControl. It cannot be used because no information is sent to it.

Data Bound Series Items Cannot Be Accessed or Modified in the Code-behind

  • Items of a data bound series cannot be accessed or modified on the server-side. This is also a consequence of the client-side data binding and rendering of the control (no OnDataBound event) which is described in the above section.

  • Items of a data bound series can only be modified through the values in their corresponding data source columns.

  • Items of declaratively or programmatically created series can be accessed and modified in the code-behind because these items are sever-side .NET objects. You can see and example in the Using Multiple Custom Colors to Create Charts help article.

Chart Title, Axes Titles, Series Names and Series Labels do Not Accept HTML Elements

The text in the chart title, axes titles, series names and series labels is rendered as an SVG Text element. Therefore, these elements do not accept any style or HTML tags.

The series tooltips are HTML elements and can, therefore, accept HTML strings, e.g., a <br /> tag to create a new line.

Line breaking in labels is made with the "\n" line feed characters. See an example in the HtmlChart - Multiline Labels demo.

You can use the TextStyle property to style chart title, chart legend, axes titles, axes labels and series labels with the options it provides

See Also

In this article