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. (Last updated on: June 24, 2019).
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:

Created:

Updated:

Platform:

Replies:

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

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.


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(@"\", @"\\") + 
                            "',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(); 
 
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. 
 
Regards, 
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. 
 
Regards, 
Mehala Palanisamy 
 


CONFIRMATION

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