Results 1 to 2 of 2

Thread: Ext.selection.CheckboxModel

  1. #1

    Default Ext.selection.CheckboxModel

    Hello,

    I'm using this model in a grid of my project and on the Google Chrome version 22 isn't appearing the checkboxs. Have you any solution for this?

    Thank you

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347

    Default

    Check to see whether or not you see the problem with the following code. It works fine for me with Ext 4.1.1 and Chrome 22.
    Code:
    Ext.onReady(function(){
        var store = Ext.create('Ext.data.Store', {
            fields: ['company'],
            data: [
                {company: '3m Co'},
                {company: 'Alcoa Inc'},
                {company: 'Altria Group Inc'}
            ]
        });
    
    
        var grid = Ext.create('Ext.grid.Panel', {
            renderTo: Ext.getBody(),
            store: store,
            width: 400,
            height: 150,
            selModel: Ext.create('Ext.selection.CheckboxModel'),
            columns: {
                items: [{
                    text     : 'Company',
                    flex     : 1,
                    dataIndex: 'company'
                }]
            }
        });
    });

Posting Permissions

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