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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove the clear filter icon in the Dashboard Master Widget

Platform: Dashboard Platform |
Control: Dashboard SDK |
Published Date: April 6, 2018 |
Last Revised Date: May 7, 2019

Removing the clear filter icon in the master widget

To hide the clear filter icon in the dashboard master widget based on its title, add the following code snippet in the index.html file:

<script type="text/javascript"> 
   $('#dashboard').ejDashboardViewer(
        {
             Serviceurl: "", // service Url
            dashboardPath: "", // path of the Dashboard
            dashboardCreated: function (args) {
                var x= $(".e-control-title");
                for (i = 0; i < x.length; i++)
                {
                    var title = $(".e-control-title").eq(i);
                    if (title.text() == "Salesperson") {     // based on this widget title, Hide the Clear Filter icon
                        var d=title.parents('.e-dbrd-control-container');
                        d.find('.e-remove-control-filter').css("display", "none");
                        break;
                    }
                }
            }
 
        });
</script> 
 

 

Use the above code snippet in the index.cshtml file of the Dashboard Server, which is available in the below location:

C:\Syncfusion\Dashboard Server\DashboardServer.Web\Views\FileRender\index.cshtml

 

The following screenshot illustrates the result of the above code snippet:

A screenshot of a cell phone

Description generated with very high confidence

ADD COMMENT
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.

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