All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hy
i am using RadhtmlChart and i want to fill RadhtmlChart programmatically using simple SQL request.
thank you very much
Hi Olivier,
I advise that you start from the following articles to see how data binding the control works:
The examples show a declared control, but you can easily create it in the code-behind like any other control.
If you will also be obtaining the data in the code-behind, the following article shows how you can data bind the chart to a custom structure: http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/data-binding/generic-list-of-custom-objects and the following one shows hot to use a DataSet: http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/data-binding/dataset.
You may also find useful the following article on creating series items programmatically and mixing that with data binding: http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/data-binding/setting-explicit-items. Regards,