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