1. #1
    Sencha User
    Join Date
    Sep 2008
    Location
    China
    Posts
    8
    Vote Rating
    0
    hongwenchina is on a distinguished road

      0  

    Wink [4.1 Beta 2] Selection is disabled in grid, when store loads from remote.

    [4.1 Beta 2] Selection is disabled in grid, when store loads from remote.


    BUG: Selection is disabled in grid, when store loads from remote with autoLoad set to false.

    if autoLoad set to true, it works. The row can be selected with CheckboxModel

    Code:
    Ext.define('User', {
         extend: 'Ext.data.Model',
         fields: [
             {name: 'firstName', type: 'string'},
             {name: 'lastName',  type: 'string'},
             {name: 'email',       type: 'string'}
         ]
     });
    var store = Ext.create('Ext.data.Store', {
        model: 'User',
        proxy: {
            type: 'ajax',
            url: 'test.json',
            reader: {
                    type: 'json',
                    root: 'rows'
            }
        },
        autoLoad: false
    });
    store.load();
    
    var grid =  Ext.create('Ext.grid.Panel',{
        store: store,
        selModel: Ext.create('Ext.selection.CheckboxModel'),
        viewConfig : {
            forceFit : true
        },
        columns:[
            {
              text: "First Name",
              dataIndex: 'firstName',
              width: 100,
              hideable: false,
              scope: me
            },{
              text: "Last Name",
              dataIndex: 'lastName',
              width: 80,
              hideable: false,
              scope: me
            },{
              text: "Email",
              width: 40,
              dataIndex: 'email',
              scope: me
        }]
    });
    and the test.json list following:
    Code:
    {
        "count":2,
        "rows":[{"firstName":"Aaron1","lastName":"Conran","email":"ttt@sdu.edu.cn"},       
     {"firstName":"root","lastName":"Spencer","email":"xxxx@sdu.edu.cn"}],
        "success":true
    }

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,781
    Vote Rating
    599
    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

      0  

    Default


    Can't reproduce this using your example. You'll need to provide more info.

    Code:
    Ext.define('User', {
        extend: 'Ext.data.Model',
        fields: [{
            name: 'firstName',
            type: 'string'
        }, {
            name: 'lastName',
            type: 'string'
        }, {
            name: 'email',
            type: 'string'
        }]
    });
    
    Ext.onReady(function() {
        var store = Ext.create('Ext.data.Store', {
            model: 'User',
            proxy: {
                type: 'ajax',
                url: 'data.json',
                reader: {
                    type: 'json',
                    root: 'rows'
                }
            }
        });
        store.load();
    
        var grid = Ext.create('Ext.grid.Panel', {
            renderTo: Ext.getBody(),
            store: store,
            selModel: Ext.create('Ext.selection.CheckboxModel'),
            viewConfig: {
                forceFit: true
            },
            columns: [{
                text: "First Name",
                dataIndex: 'firstName',
                width: 100
            }, {
                text: "Last Name",
                dataIndex: 'lastName',
                width: 80
            }, {
                text: "Email",
                width: 40,
                dataIndex: 'email'
            }]
        });
    });
    
    // Server
    {
        "count": 2,
        "rows": [
            {
                "firstName": "Aaron1",
                "lastName": "Conran",
                "email": "ttt@sdu.edu.cn"
            }, {
                "firstName": "root",
                "lastName": "Spencer",
                "email": "xxxx@sdu.edu.cn"
            }
        ],
        "success": true
    }
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Location
    China
    Posts
    8
    Vote Rating
    0
    hongwenchina is on a distinguished road

      0  

    Default


    Thx for your reply

    The grid will works, but the checkbox cannot be checked.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,781
    Vote Rating
    599
    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

      0  

    Default


    As I said, I can't reproduce it: http://screencast.com/t/aPeyQ4bfeHhd
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    4
    Vote Rating
    0
    Hoyeol is on a distinguished road

      0  

    Default


    me, too.
    checkbox cannot be checked.

    xtype: window
    animateTarget: not null
    Ver. Ext JS 4.1.0 beta 2a

    but, animateTarget: null
    checkbox can be checked.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."