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.
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
Post a Comment