how to fill RadhtmlChart programmatically

2 posts, 0 answers
  1. Olivier
    Olivier avatar
    2 posts
    Member since:
    Jan 2012

    Posted 17 Aug Link to this post

    Hy

    i am using RadhtmlChart  and i want to fill RadhtmlChart programmatically using simple SQL request.

     

    thank you very much

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 18 Aug Link to this post

    Hi Olivier,

    I advise that you start from the following articles to see how data binding the control works:

    1. http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/data-binding/overview
    2. http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/data-binding/sqldatasource

    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,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top