extjs - custom picker editor with a grid -
using extjs4, have created custom grid. 1 column editable using picker. if wanted editable text field, define row as:
{dataindex: 'valuescore', width: 40 text:'value', field: {xtype: 'textfield'}}
so think should able this:
{dataindex: 'valuescore', width: 40, text:'value', field: {xtype: 'pickerfield'}}
but how define picker fields, etc? right way this?
thanks sha pointed me in right direction on this. first of all, turns out wanted combobox (single select), not picker. regardless, did not understand (and not find doc for) ext-js create these selection objects (like combobox), , need pass creation parameters in "field" parameter. example:
{dataindex: 'valuescore', width: 40, text:'value', field: {xtype: 'combobox', store: mystore, querymode: 'local', displayfield: 'value', valuefield: 'value'}
here have pre-defined data store called mystore has limited set of values i'd user choose from.
Comments
Post a Comment