Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Datchet, UK
    Posts
    19
    Vote Rating
    0
    richardmuller is on a distinguished road

      0  

    Default Locked grid columns prevent non-locked columns being editable.

    Locked grid columns prevent non-locked columns being editable.


    A grid has three columns, all editable, and the first column is locked. The data store contains four rows of data.

    Clicking into a cell in the locked column correctly puts that cell into edit mode.

    Clicking into a cell in an unlocked column generates the JavaScript errors "grid.getView().el is undefined" followed by "owner.boundEl is null".

    All cells in unlocked columns become uneditable. Only cells in locked columns can be edited.

    Tested on IE6-IE9, Firefox 3.6, Opera 11, Chrome 9 and Safari 5.

    The code below is stand alone HTML that demonstrates the symptoms.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
        <link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/ext-4.0.1/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/ext-4.0.1/examples/shared/example.css" />
        <script type="text/javascript" src="http://dev.sencha.com/deploy/ext-4.0.1/ext-all-debug.js"></script>
    
    </head>
    <body>
    
    <script type="text/javascript">
    
    	Ext.require([
    		'Ext.grid.*',
    		'Ext.data.*',
    		'Ext.util.*',
    		'Ext.state.*'
    	]);
    
    	Ext.onReady(function() {
    		Ext.QuickTips.init();
    
    
    		Ext.create('Ext.data.Store', {
    			storeId:'simpsonsStore',
    			fields:['name', 'email', 'phone'],
    			data:{'items':[
    				{"name":"Lisa", "email":"lisa@simpsons.com", "phone":"555-111-1224"},
    				{"name":"Bart", "email":"bart@simpsons.com", "phone":"555--222-1234"},
    				{"name":"Homer", "email":"home@simpsons.com", "phone":"555-222-1244"},
    				{"name":"Marge", "email":"marge@simpsons.com", "phone":"555-222-1254"}
    			]},
    			proxy: {
    				type: 'memory',
    				reader: {
    					type: 'json',
    					root: 'items'
    				}
    			}
    		});
    
    
    		var rowEditing = Ext.create('Ext.grid.plugin.CellEditing', {
            	clicksToEdit: 1
        	});
    
    
    		Ext.create('Ext.grid.Panel', {
    			title: 'Simpsons',
    			store: Ext.data.StoreManager.lookup('simpsonsStore'),
    			selModel: { selType: 'rowmodel' },
    			plugins: [rowEditing],
    			columns: [
    				{
    					header: 'Name',
    					dataIndex: 'name',
    					width: 200,
    					locked: true,
    					field: { xtype: 'textfield' }
    				},
    				{
    					header: 'Email',
    					width: 200,
    					field: { xtype: 'textfield' },
    					dataIndex: 'email'
    				},
    				{
    					header: 'Phone',
    					width: 200,
    					field: { xtype: 'textfield' },
    					dataIndex: 'phone'
    				}
    			],
    			height: 200,
    			width: 500,
    			renderTo: Ext.getBody()
    		});
    
    	});
    
    
    </script>
    
    </body>
    </html>

  2. #2
    Sencha - Support Team mike.estes's Avatar
    Join Date
    Mar 2011
    Location
    Redwood City, CA
    Posts
    221
    Vote Rating
    9
    mike.estes will become famous soon enough

      0  

Thread Participants: 1