This question is locked. New answers and comments are not allowed.
Hi,
I am trying to use a dynamic model for pie chart and ajax binding but cant get it to work. I can't get this to load the chart. If I specify the type then it works fine.
This chart is in partial view and it will need to take care of ca 20 reports with different grouping options and I do not want to define a view for each one of them.
Please be gentle. Still a beginner. Thank a lot for your help.
@(Html.Telerik().Chart<dynamic>() .Name("ReportDataChart") .ClientEvents(events => events.OnLoad("onLoad_ReportDataChart") .OnDataBinding("ReportData_onDataBinding") .OnError("onError_ReportDataChart")) .Title("Report Data for:...") .Legend(legend => legend.Position(ChartLegendPosition.Left)) .Series(series => { series.Pie("itemCount","Bucket") .Labels(labels => labels.Visible(true) .Template(reportType.SeriesTemplate())) .Overlay(ChartPieSeriesOverlay.None); }) .Tooltip(true) .DataBinding(dataBinding => dataBinding .Ajax().Select("LoadReportDataChart", "SRReports")) )