torsten@198: var statuswerteStore = Ext.create('Ext.data.Store', {
torsten@198:     fields: ['id', 'status'],
torsten@198:     data: [
torsten@198:         {"id":1, "status":"nicht vergeben"},
torsten@198:         {"id":2, "status":"plausibel"},
torsten@198:         {"id":3, "status":"nicht repräsentativ"},
torsten@198:         {"id":4, "status":"nicht plausibel"}
torsten@198:     ]
torsten@198: });
torsten@198: 
torsten@352: /**
torsten@352:  * Combobox for Statuswert
torsten@352:  */
torsten@198: Ext.define('Lada.view.widgets.Statuswert' ,{
torsten@198:         extend: 'Ext.form.ComboBox',
torsten@198:         alias: 'widget.statuswert',
torsten@198:         store: statuswerteStore,
torsten@198:         displayField:'status',
torsten@198:         valueField: 'id',
torsten@198:         typeAhead: true,
torsten@198:         emptyText:'Wählen Sie eine Status',
torsten@355:         // Enable filtering of comboboxes
torsten@355:         autoSelect: false,
torsten@355:         queryMode: 'local',
torsten@355:         triggerAction : 'all',
torsten@355:         typeAhead: true,
torsten@355:         minChars: 0,
torsten@198:     initComponent: function() {
torsten@198:         this.callParent(arguments);
torsten@198:     }
torsten@198: });