This is a migrated thread and some comments may be shown as answers.
Simple chart example
2 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
Debashis Pyne
Top achievements
Rank 1
Debashis Pyne asked on 23 Aug 2010, 09:27 AM
Hi,

Can anyone please help me with an example to bind a chart in the runtime using code behind?
I have stored procedures and .Net class files, with Datatable as output, ready with me.

I need a simple example to bind the chart with these classes' objects in the c# file.

Thanks...

2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 25 Aug 2010, 09:43 AM
Hello Debashis,

To see more information along the lines of the requested functionality, please refer to the following article:

http://www.telerik.com/help/aspnet-ajax/buildingprogrammaticcreate.html

as well as this one:

http://www.telerik.com/help/aspnet-ajax/buildingdatabind.html

which elaborates on the databinding options for the control.
I hope this information gets you started properly.

Sincerely yours,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Simon
Top achievements
Rank 1
answered on 20 May 2011, 03:10 PM
in the code behind for the page that has the RadChart

OnDataBinding
RadChart1.DataSource = The Call to your stored procedure here as a DataTable

Then on Page_Load()
Call RadChart1.DataBind();

Hope this helps
Asked by
Debashis Pyne
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Simon
Top achievements
Rank 1
Share this question
or