2

I'm using ExtJS 4.1 and trying to change the decimal separator in a numeric grid filter to comma.

Here my grid filter config:

features: [{
    ftype: 'filters',
    encode: true,
    filters: [{
        type: 'numeric',
        dataIndex: 'frequency',
        decimalSeparator: ','
    }]
}]

enter image description here

Thanks in advance.

1 Answer 1

3

I would override Ext.ux.grid.menu.RangeMenu and add the decimalSeparator property to the default menu item configs:

Ext.override(Ext.ux.grid.menu.RangeMenu, {
    menuItemCfgs : {
        emptyText: 'Enter Number...',
        selectOnFocus: false,
        width: 155,
        decimalSeparator:','
    }
});
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.