Hi All.
I have a funny issue.
I am building kendo grid and set filtrable options.operators for number/integer column but the options are ignored and set to defaults, however same options for string liters are respected. UI element set for the integer type is respected as well.
this how I build column
column.filterable = {
ui(element) {
element.kendoNumericTextBox({
format: '####',
decimals: 0,
});
},
operators: this.commonService.gridFilterNumberOperators.operators
};
} else if (
column.filterType != undefined &&
lstDateFields.indexOf(column.applicationDataType) > -1 &&
lstDateFields.indexOf(column.filterType.toLowerCase()) > -1
) {
column.filterable = {
ui(element) {
element.kendoDatePicker({
format: 'MM/dd/yyyy',
});
},
};
} else if (
column.filterType != undefined &&
column.filterType.toLowerCase() === 'string'
) {
column.filterable = this.commonService.gridFilterStringOperators;
}
options for integer column
option for string
this how I initialize grid
kendo.jQuery(this.gridConfigurationTemplate.nativeElement).html('');
this.gridConfigurationTemplate.nativeElement.innerHTML = '';kendo
.jQuery(this.gridConfigurationTemplate.nativeElement)
.data('kendoGrid')
.setOptions(options);
//this.bindTooltipForDispatcherGrid();
grid = kendo
.jQuery(this.gridConfigurationTemplate.nativeElement)
.data('kendoGrid');
grid.dataSource.page(1);