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

Use Grid as the datasource for a Chart

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh G
Top achievements
Rank 1
Josh G asked on 23 Aug 2012, 08:40 PM
Is there a way to bind the datasource of a Chart to a Grid on the same page?  I am using MVC4 (Html Helpers) and right now have two partial views that take the same IEnumerable<T> so the both render the same data initially, but I am thinking about allowing sort and filter on the grid and it would be great if I can have the chart reflect those changes.

Perhaps it would be more easily accomplished if I was using JS to create the grid and chart, but doing it with the Html helpers is so nice and clean.

Any assistance is greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 28 Aug 2012, 04:01 PM
Hi Joshua,

Thank you for contacting us.

I am afraid that the KendoWrappers for MVC are not flexible enough since they output their initialization script (which contains the dataSource configuration) just after the element itself. You will need to initialize the Widgets with JavaScript if you want them to share a single dataSource.



Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Josh G
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or