javascript - ComboxBox in an editable Grid -


i new in extjs , making editable grid combox column. having problem in displaying chosen data combobox. may me. screenshot provided below.

http://dc532.4shared.com/img/kxkzshxg/s7/0.8332573228065803/error2.png?async

link provided.. :))

my combobox code...

data:

    var farms = new ext.data.arraystore({     fields: ['id', 'farms'],     data : [                                                      ['1', 'dvz'],             ['2', 'ssk'],             ['3', 'lna'],             ['4', 'nsk']            ]      }); 

combobox..

 header   : 'location',           width    : 130,           fixed    : true,           hideable : false,           dataindex: 'farms',           editor   : {xtype:'combo',                        store: farms,                              displayfield:'farms',                              valuefield: 'id',                              querymode: 'local',                             typeahead: true,                             triggeraction: 'all',                             lazyrender: true,                             emptytext: 'select location...',                             autoload: true            } 

you may missing "config" in editor config of items in grid panel.

i hope may missed typeahead config.

please refer below link of sencha example

http://docs.sencha.com/extjs/4.0.7/extjs-build/examples/grid/cell-editing.html

thanks.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -