Using radChart with Entity Framework

2 posts, 0 answers
  1. Anandharaj
    Anandharaj avatar
    5 posts
    Member since:
    May 2013

    Posted 26 Sep 2013 Link to this post

    Hi,

    Is there an example or can someone assist me in creating a simple bar chart while consuming data using entity framework?
    The query could be as simple as:

    SELECT        COUNT(Invoice_Header_Id) AS [Total Invoices], Created_By<br>
    FROM            Accounts_Payable.Invoice_Header<br>
    WHERE        (Date_Created >= CONVERT(DATETIME, '2012-12-19 00:00:00', 102))<br>
    GROUP BY Created_By


    I don't have an entity created yet.  I would most likely use a store procedure and return a complex type.

    Any help is appreciated.
  2. George
    Admin
    George avatar
    500 posts

    Posted 30 Sep 2013 Link to this post

    Hello Anandharaj,

    Thank you for contacting Telerik Support.

    Binding RadChartView with Entity Framework is very easy. All you need to do is generate your models from the database and use the data as you would with a normal List. I have used the data in this help article - http://www.telerik.com/help/winforms/chartview-databinding-binding-to-bindinglist.html. Below you can find attached a sample project demonstrating the approach described above, along with a SQL script for you to generate your database.

    I hope this helps.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top