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

Set a Grid as Datasource for my graph

2 Answers 72 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.
Filleau
Top achievements
Rank 1
Filleau asked on 13 Oct 2009, 03:27 PM
Hi,
I'm using the latest release with VS2008 and I code in VB

I'm searching how to set my RadGrid as a data source for my RadChart.
I don't use a data table, because I fill the RadGrid programaticly

How to do this ?

Thanks

2 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 16 Oct 2009, 01:32 PM
Hello Filleau,

RadChart supports binding to IEnumerable and IListSource data sources. Just make sure that the Grid object/collection you are binding to implements either one of those two interfaces.

Best wishes,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Richard Slade
Top achievements
Rank 2
answered on 16 Mar 2010, 10:21 AM
Do you programatically build a binding source and bind that to your grid? If so, you can use that. (I've recently done that and it works very well)

If you loop through data to build your grid, then I think you would need to do the same for your chart. I'd suggest building a binding source programatically and then binding both the grid and the chart to that.
Rich
Tags
Chart (obsolete as of Q1 2013)
Asked by
Filleau
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Richard Slade
Top achievements
Rank 2
Share this question
or