Hybrid View
-
30 Jan 2012 12:07 PM #1
[4.1b2] CellEditing is confused by complex cell content
[4.1b2] CellEditing is confused by complex cell content
In this example, the editor doesn't occupy the entire cell. It seems to be related to the renderer producing other than plain text.
Code:Ext.onReady(function() { Ext.create('Ext.data.Store', { storeId:'simpsonsStore', fields:['name', 'email'], data:{'items':[ { 'name': 'Marge', "email":"marge@simpsons.com" } ]}, proxy: { type: 'memory', reader: { type: 'json', root: 'items' } } }); Ext.create('Ext.grid.Panel', { title: 'Simpsons', store: Ext.data.StoreManager.lookup('simpsonsStore'), plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }) ], columns: [{ header: 'Name', dataIndex: 'name', field: new Ext.form.TextField({ allowBlank: false }) }, { header: 'Email', dataIndex: 'email', flex: 1, field: new Ext.form.TextField({ allowBlank: false }), renderer: function(value) { return "<span>" + value + "</span>"; } } ], width: 400, renderTo: Ext.getBody() }); });
-
30 Jan 2012 12:24 PM #2
Thanks for the report, however we already have an issue open for this, hopefully the patch should go into the next release.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
8 Jul 2012 1:38 PM #3
-
9 Jul 2012 2:45 PM #4
What browser? Because it works in 4.1.1 here.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote
