-
15 Feb 2013 2:59 AM #1
Unanswered: scroll problem in grid with CellEditing plugin
Unanswered: scroll problem in grid with CellEditing plugin
Put my code in the 'code editor' and click 'live preview'.
start editing name in first row, without canceling edition (editor not hide) move mouse cursor in Panel1 and scroll the mouse wheel.
Defect: name textfield editor not cancel edition and move in Panel1.
it looks like a defect, right?
if mouse cursor remain in the grid and scroll a mouse wheel. then editing cancel, as expected.
Code: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' } } }); Ext.create('Ext.container.Container', { items: [{ xtype: 'panel', title: 'Panel1', height: 150 },Ext.create('Ext.grid.Panel', { title: 'Simpsons', store: Ext.data.StoreManager.lookup('simpsonsStore'), columns: [ {header: 'Name', dataIndex: 'name', editor: 'textfield'}, {header: 'Email', dataIndex: 'email', flex:1, editor: { xtype: 'textfield', allowBlank: false } }, {header: 'Phone', dataIndex: 'phone'} ], selType: 'cellmodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }) ], height: 200, width: 300 })], height: 200, autoScroll: true, width: 200, renderTo: Ext.getBody() });
-
15 Feb 2013 6:52 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
- Answers
- 3102
So you want the edit to be canceled when you scroll a different component?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
17 Feb 2013 12:45 PM #3
I would like the edit not to be canceled and the editor would remain in the grid.
And I am sorry, I forgot mention, this bug has been reproduced in the v. 4.1.3
I have another problem with the trigger editor that create the window when I click the trigger. When the window has been showed and I do first click the editor disappears (stop editing), Do you know a solution of this problem or this not a bug?
-
17 Feb 2013 2:21 PM #4Sencha - Ext JS Dev Team
- Join Date
- Apr 2007
- Location
- Sydney, Australia
- Posts
- 15,067
- Vote Rating
- 96
- Answers
- 166
Your post isn't really clear. If you start an edit and move the mousewheel nothing will happen, the editor will remain in place. This is because the grid has no knowledge of scrolling information of the parent container. Once you click the mouse anywhere, the editor will see it's some other part of the document and cancel it.
Moving this one to the help forums, doesn't look like a bug.Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
18 Feb 2013 12:27 PM #5
you were able to reproduce the defect?
if you think that flying editor:
editor.jpg
not a bug, then I am very confused!
I understand why the editor remain in place, and I think, it isn't the consumer issue...
-
21 Apr 2013 9:01 PM #6
Even I am facing the same issue?? Have anyone found a solution for this?


Reply With Quote