Results 1 to 2 of 2

Thread: problems with ComboBox in grid

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    110

    Default problems with ComboBox in grid

    Hello,

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

    Code:
    	        header: "Gender",
    	        dataIndex: 'gender',
    	        width: 130,
    	        editor: new Ed(new fm.ComboBox({
                     	typeAhead: true,
                     	triggerAction: 'all',
                     	transform:'gender',
                     	lazyRender:true
                    }))
    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

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    90

    Default

    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 :


    Code:
    <select name="gender" id="gender" style="display: none;">
    		<option value="male">male</option>
    		<option value="female">female</option>
    		<option value="neither">neither</option>
    </select>
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •