Hi Nastaran,
Thanks for contacting us.
You can change the order of the operator collection which is used default by the columns as follows in the dataBound event. With the below code, now string columns uses the contains as its default operator.
public dataBound(): void {
(<any>this.grid.filterModule).customOperators.stringOperator =
(<any>this.grid.filterModule).customOperators.stringOperator.sort(function(x,y){
return x.value == 'contains' ? -1 : y.value == 'contains' ? 1 : 0;
});
}
|
If you want to change the operator list for other type columns, please change the order from the below properties of the customOperators.
Number |
numberOperator |
Boolean |
booleanOperator |
Date |
dateOperator |
DateTime |
datetimeOperator |
Regards,
Madhu Sudhanan P