Premium support for our pure JavaScript UI components


Post by alex.l »

Try to use this as a temp workaround:

    const grid = new Grid({
        appendTo : 'container',
       
// ... features : { // ... filterBar : { updateColumnFilterFields() { const me = this, { columns, store } = me.grid; let field, filter; // During this phase we should not respond to field change events. // See onColumnFilterFieldChange. me._updatingFields = true; for (const column of columns.visibleColumns) { field = me.getColumnFilterField(column); if (field) { filter = store.filters.get(column.id) || store.filters.getBy('property', column.field); if (filter) { // For filtering functions we keep what user typed into the field, we cannot construct a filter // string from them if (!filter._filterBy) { if (field.type === 'datefield') { field.value = new Date(filter.value); } else { field.value = me.buildFilterValue(filter); } } else { field.value = filter.value; } } // No filter, clear field else { field.value = ''; } } } me._updatingFields = false; } } },

All the best,
Alex


Post by jandresampaio »

Nice. Thank you very much.


Post Reply