Results 1 to 2 of 2

Thread: Adding checkcolumn dynamically

  1. #1
    Sencha User
    Join Date
    Mar 2014
    Posts
    21
    Answers
    1
    Vote Rating
    4
      0  

    Default 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
    21
    Answers
    1
    Vote Rating
    4
      0  

    Default 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

Posting Permissions

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