javascript - ExtJS 4 Load store (just array) for a combo inside a grid using renderer -


i've been facing issue on extjs while developing ui:

i have simple array contains:

['1234','2345','3456'] 

i created grid loads data, 1 of columns in grid should contain combobox, done by:

this.cellediting = new ext.grid.plugin.cellediting({             clickstoedit: 1         }); 

i have editor empty store:

{text: "tickets", renderer: utils.rendercombo, dataindex: 'assoc_tkt_nums', flex: 1,                 editor: ext.create('ext.form.field.combobox', {                     editable: false,                     querymode: 'local',                     store: []                 })          }, 

and on method "rendercombo" i'm doing this, since need render array in store (which @ first uses [] can see above) :

rendercombo: function(value, meta, record) {  meta.column.editor.getstore().loaddata(value); } 

but not seems work, see column empty, not combobox.

is there i'm missing or need change in implementation?

thanks in advance.

when specify, column's editor field combobox, first of need create cell editor , specify edit field

editor: ext.create('ext.grid.celleditor', {    field: ext.create('ext.form.field.combobox', {                 editable: false,                 querymode: 'local',                 store: []             })  }) 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -