View Full Version : Gridpanel column editor config object

18 Mar 2012, 10:48 AM

I have a grid panel with a row editor. I can set the editor for a column to a 'combobox'. I should be able to specify a config object to provide the data inline for the combobox. However, when I add the config object {xtype:'combobox'...}, the entire string is quoted. Since it is a config object it should not be quoted in this context.


18 Mar 2012, 12:55 PM

Make sure the config object can resolve to valid object i.e if you use any references that cannot be evaled the value will be converted to string.

Here is an code gen from Designer with valid config object

Ext.define('MyApp.view.MyGridPanel', {
extend: 'Ext.grid.Panel',

height: 250,
width: 400,
title: 'My Grid Panel',

initComponent: function() {
var me = this;

Ext.applyIf(me, {
columns: [
xtype: 'gridcolumn',
dataIndex: 'string',
editor: {
xtype: 'textfield',
allowBlank: false
text: 'String'

18 Mar 2012, 1:27 PM
Thanks! That did the trick. A typo was resulting in the quoted string.

19 Mar 2012, 12:57 AM
In the hope of helping someone else. This is an example of defining a combobox editor for a gridpanel with Designer:

xtype: 'combobox',
store: ['home','mobile','fax'],
queryMode: 'local',
typeAhead: true,
triggerAction: 'all',
forceSelection: true

Defining a store in any other way cause it to be escaped as a string as explained by a previous response.