Results 1 to 6 of 6

Thread: scroll problem in grid with CellEditing plugin

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1391
      0  

    Default

    So you want the edit to be canceled when you scroll a different component?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
      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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,011
    Answers
    726
    Vote Rating
    940
      -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.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
      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 Premium Member prijithkr's Avatar
    Join Date
    Jun 2012
    Posts
    56
    Answers
    1
    Vote Rating
    6
      0  

    Default

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

Posting Permissions

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