sync
authorAlan Knowles <alan@roojs.com>
Thu, 12 Dec 2013 11:45:09 +0000 (19:45 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Dec 2013 11:45:09 +0000 (19:45 +0800)
examples/form/dynamic.js

index ba7516f..9886e49 100644 (file)
@@ -253,6 +253,9 @@ Roo.onReady(function(){
                         name: 'scountry',
                         //vtype:'email',
                         width:225,
+                        valueField :'code',
+                        displayField  : 'title',
+                        emptyText : 'Select a country',
                         store: {
                              xtype : 'Store',
                              xns: Roo.data,
@@ -269,7 +272,7 @@ Roo.onReady(function(){
                                  totalProperty: 'totalCount',
                                  id: 'post_id',
                                  fields : [
-                                     'id', 'name'
+                                     'code', 'title'
                                  ]
                              }
                          },