How do you set the displayValue of a field independently from the actual value for fields that have an optionDataSource with valueField and displayField specified?
I wrote a custom editor using your YesNoMaybe editor as a template.
The function that gets called when the user makes a selection in the field editor is:
// set the specified value and dismiss the picker dialog
setSelection : function (record) {
this.currentEditor.setValue(record.name);
this.dialog.hide();
this.dialog.markForDestroy();
this.dialog = null;
}
In this case currentEditor.setValue(record.name) sets the actualValue and the displayValue together. The record also has record.id that I need to use as the field value while the record.name gets displayed.
Thanks,
paul
I wrote a custom editor using your YesNoMaybe editor as a template.
The function that gets called when the user makes a selection in the field editor is:
// set the specified value and dismiss the picker dialog
setSelection : function (record) {
this.currentEditor.setValue(record.name);
this.dialog.hide();
this.dialog.markForDestroy();
this.dialog = null;
}
In this case currentEditor.setValue(record.name) sets the actualValue and the displayValue together. The record also has record.id that I need to use as the field value while the record.name gets displayed.
Thanks,
paul
Comment