View Full Version : problems with ComboBox in grid

17 Apr 2007, 11:44 PM

I have the following code to allow inline editing in my grid, this is a snippet out of the ColumnModel

header: "Gender",
dataIndex: 'gender',
width: 130,
editor: new Ed(new fm.ComboBox({
typeAhead: true,
triggerAction: 'all',

Ed and fm are shortcuts: var fm = Ext.form, Ed = Ext.grid.GridEditor;

I keep getting the error 's has no properties' - and I have no idea why...the grid runs fine without this combobox

18 Apr 2007, 8:22 AM
I've had quite a few 's has no properties' errors....and it always has been a problem with the combobox html. Make sure you have something similar to :

<select name="gender" id="gender" style="display: none;">
<option value="male">male</option>
<option value="female">female</option>
<option value="neither">neither</option>

Also, there may be a problem if you try to use 'gender' multiple times. Also...try 'cbgender' rather than 'gender'. It might be confusing the DOM id.