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

How to filter the data on dashboard based on current user using Dashboard Platform SDK?

Platform: Dashboard Platform |
Control: Dashboard SDK

Current User based filter using SDK

The dashboard can be filtered using the current user name without the Syncfusion Dashboard Server by using one of the following two APIs:

  • Filter parameter
  • Dashboard parameter

Filter parameter

 You can filter the dashboard based on the current user by passing the current user name within the filterParameters API. Passing the parameter filters the dashboard at the initial render. To learn more about the filterParameters, follow the given link.


To filter the dashboard based on the filter parameter using the filterParameters API, pass the current username as shown in the following code snippet.


                serviceUrl: 'service URL',
                dashboardPath:'Path of the dashboard',
                filterParameters: "UserName=Thomas Hardy",  \\ User Name must be a column in the data Source


Find the ASP.NET MVC sample to filter the dashboard using the filterParameters API in the following link.


In the above sample, the user name and password have been used as follows.

User Name


Thomas Hardy


Martin Sommer


Christina Berglund


Yang Wang


Elizabeth Brown



Dashboard parameters

You can filter the dashboard based on the current user by passing the current user name within the dashboardParameters API.

To know how to configure the Dashboard Parameters in the Syncfusion Dashboard Designer, follow the given link.


Refer to the UG documentation link to learn about the Dashboard Parameter API.


To know how to pass the Dashboard Parameter from the viewer, follow the given link.


The following code snippet illustrates the Dashboard Parameters based on the current user.

          serviceUrl: 'service URL',
          dashboardPath:'Path of the dashboard',
          dashboardParameterSettings: {
                "showIcon":true, // to show or hide the dashboard  parameter icon
                         "parameterName":"UserName",   \\ Parameter Name must be same as the parameter name used while design the dashboard              
                         "value":" Thomas Hardy ",                         


You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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