Mercurial > lada > lada-client
comparison app/view/widgets/Mst.js @ 260:70a1b5962930
Issue50: Added sorting on the most stores.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 25 Jul 2013 15:39:15 +0200 |
parents | 19eab475bbe5 |
children | 5fbcbf330839 |
comparison
equal
deleted
inserted
replaced
259:d19ad9d28de5 | 260:70a1b5962930 |
---|---|
1 // Combobox for Messtelle | 1 // Combobox for Messtelle |
2 var mstStore = Ext.create('Ext.data.Store', { | 2 var mstStore = Ext.create('Ext.data.Store', { |
3 fields: ['mstId'], | 3 fields: ['mstId', 'messStelle'], |
4 sorters: [{ | |
5 property: 'messStelle', | |
6 }], | |
4 proxy: { | 7 proxy: { |
5 type: 'ajax', | 8 type: 'ajax', |
6 api: { | 9 api: { |
7 read: 'server/rest/mst' | 10 read: 'server/rest/mst' |
8 }, | 11 }, |
15 | 18 |
16 Ext.define('Lada.view.widgets.Mst' ,{ | 19 Ext.define('Lada.view.widgets.Mst' ,{ |
17 extend: 'Ext.form.ComboBox', | 20 extend: 'Ext.form.ComboBox', |
18 alias: 'widget.mst', | 21 alias: 'widget.mst', |
19 store: mstStore, | 22 store: mstStore, |
20 displayField:'mstId', | 23 displayField:'messStelle', |
21 valueField: 'mstId', | 24 valueField: 'mstId', |
22 typeAhead: true, | 25 typeAhead: true, |
23 emptyText:'Wählen Sie eine Messstelle', | 26 emptyText:'Wählen Sie eine Messstelle', |
24 initComponent: function() { | 27 initComponent: function() { |
25 this.callParent(arguments); | 28 this.callParent(arguments); |