Skip to main content

MasterFilterValues Type

Contains values that are used to select elements in the master filter item.

#Declaration

TypeScript
export type MasterFilterValues = Array<Array<DevExpress.Dashboard.Data.PrimitiveType>> | Array<DevExpress.Dashboard.Data.ItemDataAxisPointTuple>

#Members

Type
PrimitiveType[][]
ItemDataAxisPointTuple[]

#Remarks

Use the ViewerApiExtension.setMasterFilter method to set the master filter for a dashboard item.

The following code shows how to add filter values to the Grid dashboard item:

javascript
var filterValues = [['UK', 'Anne Dodsworth'], ['USA', 'Andrew Fuller']];
dashboardControl.GetDashboardControl().findExtension('viewerApi').setMasterFilter("gridSalesByState", filterValues);