Results 1 to 2 of 2

Thread: [4.2.x]

    This issue duplicates another issue.
  1. #1
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Goiânia - GO, Brazil
    Vote Rating

    Default [4.2.x]

    Ext version tested:
    • Ext 4.2.1 beta
    Browser versions tested against
    • IE8
    • FF20.01
    • Chrome 26
    DOCTYPE tested against:
    • HTML5
    • If your grid keeps selection after reload then list of records obtained by grid.getSelectionModel().getSelection() contains the same records before and after reload, so if some selected records have been changed you'll never find it until deselect and then selecte records again.
    Steps to reproduce the problem:
    • Select a record in grid, change some field in the same record, after update reload store and them console.log in the selection record. the selected record is still the old one, You need to unselect and select again to see changes made
    • bar
    The result that was expected:
    • the selected recors keep unchanged
    The result that occurs instead:
    • When you update some field in record, the selection reference needs to be also updated
    Test Case:
        Ext.onReady(function() {
        Ext.define('User', {        extend: '',        idProperty: 'id',                fields: [            { name: 'id', type: 'int' },            { name: 'name', type: 'string' },            { name: 'random', type: 'random' }        ]    });        var data = [        { id: 0, name: 'Foo', random: 0 },        { id: 1, name: 'Bar', random: 0 },    ];        var store = Ext.create('', {        model: 'User',        data: data,        proxy: {            type: 'memory',            reader: {                type: 'json',                root: 'users'            }        }    });        Ext.create('Ext.grid.Panel', {        store: store,        columns: [            { header: 'Id', dataIndex: 'id' },            { header: 'Name', dataIndex: 'name' },            { header: 'Random', dataIndex: 'random' }        ],        renderTo: Ext.getBody()    });        store.load();
    HELPFUL INFORMATIONScreenshot or Video:
    • attached
    See this URL for live test case: http://Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    • custom css (include details)
    Operating System:
    • ________
    • Windows 7 Pro
    Wemerson Januario
    Contrate-me/Hire me on:
    From: Goiânia, GO, Brazil
    Sencha Consultant and Web Developer

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  2. #2
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia
    Vote Rating


    Looks like the same issue as demonstrated here:
    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.

Posting Permissions

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