This is a migrated thread and some comments may be shown as answers.

Using radChart with Entity Framework

1 Answer 53 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anandharaj
Top achievements
Rank 1
Anandharaj asked on 26 Sep 2013, 10:03 AM

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.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 30 Sep 2013, 04:25 PM
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 >>
Tags
Chart (obsolete as of Q1 2013)
Asked by
Anandharaj
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or