Essential Chart ASP.NET MVC
How to refresh a chart with callbacks
May 22, 2012 06:10 PM by Shawn Lam
Montani
How to refresh a chart with callbacks
November 11, 2011 05:05 AM
Hi,

We need to refresh the chart datasource when changing the selected values on comboboxes. I don't want to reload the page. I just need to relaod/replace the partial view where the chart is.
Thanks,

Julien


Vijayabharathi K
[Syncfusion]
How to refresh a chart with callbacks
November 14, 2011 09:33 AM
Hi Julien,

Thanks for using Syncfusion products.

We suggest you to use Ajax to avoid reload the page when selected values on combo boxes. Please refer the attached sample for this query.

Please us know if you have any concern.

Regards,
Vijayabharathi





Sample_9ece8876.zip
Shawn Lam
How to refresh a chart with callbacks
May 22, 2012 06:10 PM
Hi Vijaya,

We're going with another approach to doing our AJAX, and that is the controller returns a JSON object with the generated HTML string, which Javascript will insert it directly into the page.

My question is how do I generate the HTML string within the Controller. In the View, we use something like:
    Html.Syncfusion().Chart("chart_Model", (MVCChartModel)ViewData["ChartModel"])

But this doesn't compile if I put this in the Controller. It doesn't recognize the first Html class/namespace. What is the equivalent syntax I can use?

Thanks!
::adCenter::