ASPxClientDashboard.CanClearMasterFilter(String) Method

Returns whether or not the specified master filter can be cleared in the current state.

Namespace: DevExpress.DashboardWeb.Scripts

Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.Scripts.dll


public bool CanClearMasterFilter(
    string itemName
Public Function CanClearMasterFilter(
    itemName As String
) As Boolean


Type Name Description
String itemName

A string that specifies the component name of the master filter item.


Type Description

true, if the specified master filter can be cleared in the current state; otherwise, false.


To clear the specified master filter item, use the ASPxClientDashboard.ClearMasterFilter method.


The following example demonstrates how to apply master filtering in the Web Dashboard on the client side.

In this example, the ASPxClientDashboard.SetMasterFilter method is used to select required rows in the Grid dashboard item while the ASPxClientDashboard.SetRange method is called to select the required range in the Range Filter dashboard item. These methods are called in the onClick event handler of the dxButton.

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls

Namespace WebDashboard_SetMasterFilter
    Partial Public Class WebForm1
        Inherits System.Web.UI.Page

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
            ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/Dashboard.xml")
        End Sub
    End Class
End Namespace
See Also