|
this.filterOptions = {
showPredicate: false,
filteredColumns: [
{
field: 'Title', matchCase: false, operator: [ej.FilterOperators.equal], value: ''
}
]
};
|
|
[app.component.ts]
export class AppComponent {
public filterOptions: any;
constructor() {
this.filterOptions = {
showPredicate: false,
filteredColumns: [
{
field: 'CustomerID', matchCase: false, operator:"equal", value:' '
}
]
};
}
}
|
| [app.component.html] <input type="button" ej-button id="button" [value]="text" [size]="medium" (ejclick)="onExternalbuttonClick($event)" /> ------------------------------------------------------------------- [app.component.ts] export class AppComponent { constructor() { this.text = "External Click"; } onExternalbuttonClick(args: any){ var gridObj = $("#Grid").ejGrid("instance"); gridObj.model.columns[2]['headerText'] = "New Customer header"; gridObj.refreshHeader(); gridObj.setWidthToColumns(); } } |