1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
    Prorok is on a distinguished road

      0  

    Default 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()
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So you want the edit to be canceled when you scroll a different component?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
    Prorok is on a distinguished road

      0  

    Default


    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?

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,004
    Answers
    465
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      -1  

    Default


    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!

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
    Prorok is on a distinguished road

      0  

    Default


    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...

  6. #6
    Sencha User prijithkr's Avatar
    Join Date
    Jun 2012
    Posts
    54
    Answers
    1
    Vote Rating
    6
    prijithkr is on a distinguished road

      0  

    Default


    Even I am facing the same issue?? Have anyone found a solution for this?