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

Datasource from C# DOTNET

1 Answer 181 Views
Charts
This is a migrated thread and some comments may be shown as answers.
ganesh
Top achievements
Rank 1
ganesh asked on 12 Aug 2011, 10:16 AM
IS there a way to give data source to the chart from Dataset of DotNet?.

1 Answer, 1 is accepted

Sort by
0
Todd
Telerik team
answered on 12 Aug 2011, 03:00 PM
Hello Ganesh-

The Kendo UI chart simply needs JSON data. How it gets that JSON data is entirely up to you, and there are at least two ways to accomplish the task:

  • Embed JSON data in your page when it renders on the server
  • Fetch JSON data using on-demand using a web service
In either case, how you perform data access on the server should have little impact on Kendo UI. If you're using .NET DataSets, you simply need to find a way to convert/serialize your data to JSON and then make it available to the chart.

Hopefully that helps. Making the transition to a JavaScript UI style of development can feel very different coming from server-side development, but there are definitely benefits to make it worth the effort.

-Todd
Tags
Charts
Asked by
ganesh
Top achievements
Rank 1
Answers by
Todd
Telerik team
Share this question
or