|101673||Nov 11,2011 10:05 AM UTC||May 23,2012 07:35 AM UTC||ASP.NET MVC (Classic)||3|
Thanks for the update.
If your intention is to use html helper in controller means, you can use the below code snippet in controller for chart to achieve this,
MVCChartModel chartModel = new MVCChartModel();
ViewData["ChartModel"] = chartModel;
//html helper in controller
System.IO.TextWriter writer = new System.IO.StringWriter();
var html = new HtmlHelper(new ViewContext(ControllerContext, new WebFormView(ControllerContext, "Index"), new ViewDataDictionary(), new TempDataDictionary(), writer), new ViewPage());
var ChartString = html.Syncfusion().Chart("Chart_Model", chartModel);
Also, please refer the below forum links to know more details for this,
Please let us know if we misunderstood your query.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.