BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi,
I am in the process of evaluating the capabilities of the Syncfusion
dashboard with a view to use it in one of our applications and was wondering if
there is an API for interacting programmatically with the visuals?
For example; when a user clicks on a segment of a Pie chart displayed on
the dashboard, I want to be able to intercept that action programmatically and
pass some parameters (e.g. an Id corresponding to the segment clicked) into my
host WPF application.
I would very much appreciate any help on this.
Thank you
Jav.
var sydbPath = _environmentFolder + dashboardProperties.SydxFileName;
var viewerstr = "$('#dashboard').ejDashboardViewer({serviceUrl: '" + dashboardProperties.ServiceUrl +
"', dashboardPath: '" +
sydbPath.Replace(@"\", @"\\") +
"',filterParameters:location.search.substr(1),actionComplete:'actionComplete'});";
var sb = new StringBuilder();
sb.Append("<body style=\"width:100%; height:100%; overflow:hidden;\">");
sb.Append("<div id=\"dashboard\" style=\"width:100%; height:100%;\" />");
sb.Append("<script type=\"text/javascript\" language=\"javascript\">");
sb.Append(viewerstr);
sb.Append("function actionComplete(args){if(args.eventType==='afterRendering')" +
"{for(var i=0;i<args.source.data.d.length;i++){if(args.source.data.d[i].Key == 'Title')" +
"{alert(JSON.stringify(args.source.data.d[i].Value));}}}}");
sb.Append("</script>");
sb.Append("</body>");
return sb.ToString(); |