javascript - setting the store of a combobox in EditableGrid in ExtJs based on another combo -


i using ext designer. (ext version 3.x) have combo in form autoref 'worker_type'

then there editable grid, add employees

the grid has employee selection combo illustrated in image

i want change store of combo based on 'worker_type' selection. goal here list employees of worker type only.

but unable access editable grid combo box in code anyway.

any assistance highly appreciated.

thanks

employee selection combo

put select listener first combo, , on selecting value, load data store of second combo. way:

var firstcombo = new ext.form.combobox({     mode : 'local',     store : firststore,     ......     listeners : {         scope : this,         select : function(combo){             // here load "secondstore" selected combo value             // combo value combo.getvalue()         }     }  });   var secondcombo = new ext.form.combobox({     mode : 'local',     store : secondstore,     ...... }); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -