Results 1 to 3 of 3

Thread: Issue in EXTJS grid - Spreadsheet model

    You found a bug! We've classified it as EXTJS-27692 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Oct 2016
    Posts
    1
    Vote Rating
    -1
      -1  

    Default Issue in EXTJS grid - Spreadsheet model

    Hi Sencha,

    I'm using the extjs 6.5.3.57 premium version and I have few issues with the spreadsheet selection model in the extjs grids.
    'Select/Deselect all' feature is not working when extra rows are added to the grid.

    When additional rows are added to the loaded grid, I'm not able to do the check/uncheck all using the checkbox in header column or using the rownumberheader. The same is working for checkbox selection model (when used the xtype :'checkboxmodel').

    Is there a fix for this?

    The issue can be replicated using the following code:


    Code:
    Ext.application({
        name: 'Fiddle',
    
    
        launch: function() {
         var store =   Ext.create('Ext.data.Store', {
                storeId: 'simpsonsStore',
                fields: ['name', 'email', 'phone'],
                data: [{
                    name: 'Lisa',
                    email: '[email protected]',
                    phone: '555-111-1224'
                }, {
                    name: 'Bart',
                    email: '[email protected]',
                    phone: '555-222-1234'
                }, {
                    name: 'Homer',
                    email: '[email protected]',
                    phone: '555-222-1244'
                }, {
                    name: 'Marge',
                    email: '[email protected]',
                    phone: '555-222-1254'
                }]
            });
    var arrRecords =[{
                    name: '',
                    email: '',
                    phone: ''
                }, {
                    name: '',
                    email: '',
                    phone: ''
                }, {
                    name: '',
                    email: '',
                    phone: ''
                }, {
                    name: '',
                    email: '',
                    phone: ''
                }];
       var grid=     Ext.create('Ext.grid.Panel', {
                id:'simpsonsGrid',
                title: 'Simpsons',
                store: store,
                columns: [{
                    text: 'Name',
                    dataIndex: 'name'
                }, {
                    text: 'Email',
                    dataIndex: 'email',
                    flex: 1
                }, {
                    text: 'Phone',
                    dataIndex: 'phone'
                }],
                selModel: {
                    type: 'spreadsheet',
                    rowSelect: true,
                    checkboxSelect: true
                    
                },
                  dockedItems:
                [
                    {
                        xtype: 'toolbar',
                        dock: 'top',
                        items:
                            [
                                {
                                    xtype: 'button',
                                    text: 'Add Rows',
                                    listeners:
                                        {
                                            click:
                                                {
                                                    fn: function () {
                                               store.add(arrRecords);
                                            }
                                        }
                                }
                        }
                    ]
                    }],
                height: 400,
                width: 400,
                renderTo: Ext.getBody() 
            });     
        }
    });

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005
    Vote Rating
    -522
      -1  

    Default

    Thank you for reaching out. I have shared your question with the support team and they will look into it and get back with you. I appreciate your patience.

    Thanks,

    Michele

  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    465
    Vote Rating
    -333
      -1  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. [EXTJS 6.5.3] Focus bug in spreadsheet selection model
    By tvanzoelen in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 30 Jan 2018, 5:39 AM
  2. Grid Cell Editing + Spreadsheet selection model
    By herme063 in forum Ext JS 6.x Q&A
    Replies: 2
    Last Post: 25 Jan 2016, 10:10 AM
  3. Replies: 1
    Last Post: 14 Dec 2015, 10:12 AM
  4. [OPEN] Grid Spreadsheet selection model - selectRows not working
    By lenny87 in forum Ext 5: Bugs
    Replies: 1
    Last Post: 12 Jun 2015, 8:43 AM

Tags for this Thread

Posting Permissions

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