Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software.
Try it for free.
initFilter() {
console.log('bound');
this.filter('inactive');
}
filter(value: string) {
if (value == 'all' && this.grid.filterSettings.columns.length ) { //Check the filtered columns length
this.grid.clearFiltering();
}
if (value == 'active') {
this.grid.filterByColumn('CustomerID', 'equal', 'VINET');
}
if (value == 'inactive') {
this.grid.filterByColumn('OrderID', 'equal', 10248);
}
}
} |