Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141816 | Jan 5,2019 01:35 PM UTC | Jan 9,2019 03:04 PM UTC | Dashboard Platform | 2 |
![]() |
Tags: Dashboard SDK |
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(); |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.