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

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:

Article ID: Published Date: Last Revised Date: Platform: Control:
8651 04/06/2018 04/06/2018 Dashboard Platform Dashboard SDK
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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