We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is there an API for interacting programmatically with the dashboard's visuals

Thread ID:





141816 Jan 5,2019 01:35 PM UTC Jan 9,2019 03:04 PM UTC Dashboard Platform 2
Tags: Dashboard SDK
Jav Ainesaz
Asked On January 5, 2019 01:35 PM UTC


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


Mehala Palanisamy [Syncfusion]
Replied On January 7, 2019 01:24 PM UTC

Hi Jav, 
We can able to get the dashboard widget’s interacted value by using the Javascript API actionComplete. 
Use the below code snippets in the Viewer html Generating code. 
var sydbPath = _environmentFolder + dashboardProperties.SydxFileName; 
            var viewerstr = "$('#dashboard').ejDashboardViewer({serviceUrl: '" + dashboardProperties.ServiceUrl + 
                            "', dashboardPath: '" + 
                            sydbPath.Replace(@"\", @"\\") + 
            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("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')" + 
            return sb.ToString(); 
We will get back to you the further details of getting the dashboard widget’s interacted value in WPF application event in two business days. 
Mehala Palanisamy 

Mehala Palanisamy [Syncfusion]
Replied On January 9, 2019 03:04 PM UTC

Hi Jav, 
Thanks for your Patience. 
We have checked this scenario from our side. We could not able to get the dashboard widget’s interacted value by using the WPF event. Please use the previous update JavaScript API event to get the interacted value in your application. 
Mehala Palanisamy 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon