I will create Picker for RowEditing.
Ext.define('Test', {
extend: 'Ext.form.field.Picker',
alias: 'widget.test',
alternateClassName: ['Test'],
triggerCls: Ext.baseCSSPrefix + 'form-time-trigger',
createPicker: function () {
var me = this,
picker = new Ext.form.field.TextArea({
pickerField: me,
id: 'myPicker',
floating: true,
hidden: true,
ownerCt: this.ownerCt,
grow: true
});
return picker;
}
});
var pickerField = {
xtype: 'test'
};
and then I use editor for column:
{ text: 'Comments', dataIndex: 'comments', align: 'left', editor: pickerField, width: 260}
Can you explain pls why I have blank textarea? I will edit my comment field in textarea. ExtJS 4.2
upd: I specify method and it works.
valueToRaw: function(){
var record = mainGrid.selModel.getSelection()[0];
var comments = record.get('comments');
return comments;
}
But after editing when I close textarea nothing not happend.