Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7455 in a recent build.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default CellModel getCurrentPosition returns undefined

    CellModel getCurrentPosition returns undefined


    Ext Version
    Whatever used in the API Documentation. I use 4.1.1

    Browser
    Chrome 22

    Description
    Used CellModel with CellEdit plugin : cellModel.getCurrentPosition() returns undefined everytime

    Steps to reproduces problem
    Create a grid with selType : cellmodel and add the celledit plugin. Use the getCurrentPosition() method

    Expected Result
    An object in the format { row : row, column : column}

    Result that occured:
    undefined

    Test Case
    Code pasted from example in the cellediting documentation and added the select listener to show error

    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.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: 400,
        renderTo: Ext.getBody(),
        listeners : {
            select : function()
            {
                var pos = this.getSelectionModel().getCurrentPosition();
                alert(pos);
            }
        }
    });
    Live testing
    http://docs.sencha.com/ext-js/4-1/#!...in.CellEditing
    Change the sample code to the one I provided above under the test case.
    Last edited by varunach; 8 Oct 2012 at 1:12 AM. Reason: Live test case

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default Work Around

    Work Around


    Could we have a work around to get it working for 4.1.1 and 4.1.2 (if the bugfix hasn't already been included there)?

    Thanks

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar