1. #1
    Sencha User
    Join Date
    Mar 2014
    Posts
    11
    Vote Rating
    3
    Answers
    1
    Datamex is on a distinguished road

      0  

    Default Answered: Adding checkcolumn dynamically

    Answered: Adding checkcolumn dynamically


    How can I add a checkcolumn to a grid dynamically? I've created an example but the checkbox is not appearing. Please see the following link http://jsfiddle.net/Guido_Neele/MTWw4/

  2. Had to use Ext.grid.column.CheckColumn instead of Ext.grid.column.Column with xtype checkcolumn.

    Code:
    var column = Ext.create('Ext.grid.column.CheckColumn', {
         cls: 'cmp',
         width: 50,
         resizable: false,
         dataIndex: "cb2",
         hideable: false,
         menuDisabled: true,
         text: "Test",
         sortable: false
    });

  3. #2
    Sencha User
    Join Date
    Mar 2014
    Posts
    11
    Vote Rating
    3
    Answers
    1
    Datamex is on a distinguished road

      0  

    Default Problem solved

    Problem solved


    Had to use Ext.grid.column.CheckColumn instead of Ext.grid.column.Column with xtype checkcolumn.

    Code:
    var column = Ext.create('Ext.grid.column.CheckColumn', {
         cls: 'cmp',
         width: 50,
         resizable: false,
         dataIndex: "cb2",
         hideable: false,
         menuDisabled: true,
         text: "Test",
         sortable: false
    });

Tags for this Thread