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

      1  

    Default Unanswered: cell editing in grid with selModel: checkboxmodel

    Unanswered: cell editing in grid with selModel: checkboxmodel


    Hi!
    I have grid with selModel : CheckboxModel and cellediting plugin.
    If I select several items and try editing cell Name, all selected items are deselected, this is normal behavior?
    and how can I prevent this?

    Ext version tested:
    • Ext 4.1.1
    Test Case:

    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: [
            { text: 'Name',  dataIndex: 'name', editor: { xtype: 'textfield'} },
            { text: 'Email', dataIndex: 'email', flex: 1 },
            { text: 'Phone', dataIndex: 'phone' }
        ],
        height: 200,
        width: 400,
        plugins: [{ptype: 'cellediting', clicksToEdit: 1}],
        selModel: Ext.create('Ext.selection.CheckboxModel'),
        renderTo: Ext.getBody()
    });

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

      0  

    Default


    In version 4.1.0, 4.0.7 with selModel: Ext.create('Ext.selection.CheckboxModel', { checkOnly: true }), everything works well but without checkOnly: true in 4.1.2, 4.1.1, 4.1.0, 4.0.7 we have unexpected behavior.
    even with checkOnly: true in 4.1.2, 4.1.1 we have this issue.
    it looks like a bug!

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Answers
    1
    Vote Rating
    1
    AustinAndrews is on a distinguished road

      0  

    Default I can reproduce it.

    I can reproduce it.


    Definitely can reproduce. When the row is edited, the row is selected, and all other rows are deselected.


    Hopefully we see a fix soon, seems minor, but I don't have a workaround at the moment.

    // edit,

    checkOnly : true,
    mode: 'multi',
    selectByPosition : Ext.emptyFn // workaround; EXTJSIV-7110

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Vote Rating
    0
    alphimax is on a distinguished road

      0  

    Default


    Also need a solution for this one. Using 4.1.1

  5. #5
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    20
    Vote Rating
    0
    FCGus is on a distinguished road

      0  

    Default


    I posted also a message in a similar post, sorry for the multiple posts but this is something that hopefully there is some type of workaround...In a few posting that I have encountered no solution has been suggested and it is causing a few issues.
    Using 4.1.1, editable grid, tabbing over editable cells is causing the row to be selected (check box is checked) something that needs to be done only when the user manually clicks on the selection check box.

    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