samedi 3 mars 2018

Checkbox in editor grid Extjs

I have this code:

{                    
                xtype: 'checkcolumn',
                header: 'Contacto de Emergencia',
                dataIndex: 'contactoEmergencia',
                listeners: {
                    beforecheckchange: function() {
                        return false;
                    }
                },
                width: 60,
                editor: {
                    xtype: 'checkbox',
                    cls: 'x-grid-checkheader-editor',
                    inputValue: 1,
                    uncheckedValue: 0                
                }   
            }

I want it sends 1 / 0 instead of true / false but it is still sending true false, how can I change it to send the values I want ?




Aucun commentaire:

Enregistrer un commentaire