Results 1 to 3 of 3

Thread: How to hide some checkbox in the checkbox column

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
      0  

    Default Answered: How to hide some checkbox in the checkbox column

    Hello,

    I have a checkcolumn and I would like to hide some checkbox in some rows. could you tell me how to do that?

    Thank you
    My code:

    columns: [
    {
    xtype: 'checkcolumn',
    dataIndex: 'is_checked',
    width: 30,
    renderer: function(value, metaData, record, rowIndex, colIndex, store) {
    if (record.data.status_code == 'val' )
    return ''; --hide the check box
    return .....'I dont know what should be return here';
    }
    },

  2. Return this:

    Code:
    return Ext.ux.CheckColumn.prototype.renderer.apply(this, arguments);

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      1  

    Default

    Return this:

    Code:
    return Ext.ux.CheckColumn.prototype.renderer.apply(this, arguments);
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
      0  

    Default

    I runs well

    Thank you

Posting Permissions

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